chore: redirect to app if no dns for blocked subdomains
This commit is contained in:
@@ -42,6 +42,8 @@ export const load = async ({ url, cookies }): Promise<LoadOutput> => {
|
|||||||
}
|
}
|
||||||
} else if (subdomain === 'play' || debugPlay === 'true') {
|
} else if (subdomain === 'play' || debugPlay === 'true') {
|
||||||
response.skipAuth = true;
|
response.skipAuth = true;
|
||||||
|
} else {
|
||||||
|
throw redirect(301, 'https://app.classroomio.com');
|
||||||
}
|
}
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
|||||||
Reference in New Issue
Block a user