fix: too many redirects

This commit is contained in:
Rotimi Best
2024-04-21 20:32:47 +01:00
committed by GitHub
parent 061e8ec3f6
commit d877eb206a
+1 -1
View File
@@ -52,7 +52,7 @@ export const load = async ({ url, cookies }): Promise<LoadOutput> => {
}
} else if (subdomain === 'play' || debugPlay === 'true') {
response.skipAuth = true;
} else if (PRIVATE_APP_SUBDOMAINS.split(',').includes(subdomain) && !isDev) {
} else if (!PRIVATE_APP_SUBDOMAINS.split(',').includes(subdomain) && !isDev) {
throw redirect(307, 'https://app.classroomio.com');
}