chore: redirect to app if no dns for blocked subdomains

This commit is contained in:
Rotimi Best
2023-12-11 03:44:31 +03:00
parent b116bdec60
commit 28e9281fdc
@@ -42,6 +42,8 @@ export const load = async ({ url, cookies }): Promise<LoadOutput> => {
}
} else if (subdomain === 'play' || debugPlay === 'true') {
response.skipAuth = true;
} else {
throw redirect(301, 'https://app.classroomio.com');
}
return response;