From 28e9281fdccc435d7e67d0a63bceda8a66ab66d7 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Mon, 11 Dec 2023 03:44:31 +0300 Subject: [PATCH] chore: redirect to app if no dns for blocked subdomains --- apps/dashboard/src/routes/+layout.server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/dashboard/src/routes/+layout.server.ts b/apps/dashboard/src/routes/+layout.server.ts index ce598e6f..32d845d8 100644 --- a/apps/dashboard/src/routes/+layout.server.ts +++ b/apps/dashboard/src/routes/+layout.server.ts @@ -42,6 +42,8 @@ export const load = async ({ url, cookies }): Promise => { } } else if (subdomain === 'play' || debugPlay === 'true') { response.skipAuth = true; + } else { + throw redirect(301, 'https://app.classroomio.com'); } return response;