Skip to content

Open-source status page, incident response and uptime monitoring

fix: revert middleware (#92)

Thibault Le Ouaya88be2ee242f
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index a895f9728..c8bec2b69 100644
--- a/apps/web/src/middleware.ts
+++ b/apps/web/src/middleware.ts
@@ -33,8 +33,8 @@ export const getValidSubdomain = (host?: string | null) => {
host = window.location.host;
}
// we should improve here for custom vercel deploy page
- if (host && host.includes(".") && (!host.includes(".vercel.app") || !host.includes('.ngrok.app'))) {
- const candidate = host.split(".")[0];
+ if (host && host.includes(".") && !host.includes(".vercel.app")) {
+ const candidate = host.split(".")[0];
if (candidate && !candidate.includes("www")) {
// Valid candidate
subdomain = candidate;