Skip to content

Open-source status page, incident response and uptime monitoring

fix: preview url (#65)

Thibault Le Ouay22361f3c9f36
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index adc477393..66e157f20 100644
--- a/apps/web/src/middleware.ts
+++ b/apps/web/src/middleware.ts
@@ -33,7 +33,7 @@ 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(".ngrok-free.app")) {
+ if (host && host.includes(".") && !host.includes(".vercel.app")) {
const candidate = host.split(".")[0];
if (candidate && !candidate.includes("www")) {
// Valid candidate