Openstatus www.openstatus.dev

🍺

+1 -1
+1 -1
apps/status-page/src/middleware.ts
··· 84 84 return NextResponse.rewrite(new URL(`/${prefix}${url.pathname}`, req.url)); 85 85 } 86 86 87 - if(_page?.customDomain && host !== "www.stpg.dev" ){ 87 + if(_page.customDomain && host !== `${_page.slug}.stpg.dev` ){ 88 88 if(pathnames.length > 2){ 89 89 const pathname = pathnames.slice(2).join("/"); 90 90 return NextResponse.rewrite(new URL(`/${_page.slug}/${pathname}`, req.url));