Openstatus www.openstatus.dev

fix: preview url (#65)

authored by

Thibault Le Ouay and committed by
GitHub
22361f3c 17c9b0a6

+1 -1
+1 -1
apps/web/src/middleware.ts
··· 33 33 host = window.location.host; 34 34 } 35 35 // we should improve here for custom vercel deploy page 36 - if (host && host.includes(".") && !host.includes(".ngrok-free.app")) { 36 + if (host && host.includes(".") && !host.includes(".vercel.app")) { 37 37 const candidate = host.split(".")[0]; 38 38 if (candidate && !candidate.includes("www")) { 39 39 // Valid candidate