fix: redirect docs in new page, handle 404 vercel url
This commit is contained in:
@@ -31,6 +31,11 @@ export const load = async ({ url, cookies }): Promise<LoadOutput> => {
|
||||
const matches = url.host.match(/([a-z 0-9 -]+).*classroomio[.]com/);
|
||||
const subdomain = matches?.[1] ?? '';
|
||||
|
||||
if (!url.host.includes('.classroomio.com')) {
|
||||
// TODO: We can verify if custom domain here
|
||||
return response;
|
||||
}
|
||||
|
||||
if (!blockedSubdomain.includes(subdomain)) {
|
||||
const answer = Array.isArray(matches) ? !!subdomain && subdomain !== 'www' : false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user