tangled
alpha
login
or
join now
openstatus.dev
/
openstatus
5
fork
atom
Openstatus
www.openstatus.dev
5
fork
atom
overview
issues
pulls
pipelines
🍺
thibault.tngl.sh
5 months ago
36643222
96f76bb6
+1
-1
1 changed file
expand all
collapse all
unified
split
apps
status-page
src
middleware.ts
+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
87
-
if(_page?.customDomain){
87
87
+
if(_page?.customDomain && host !== "www.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));