tangled
alpha
login
or
join now
openstatus.dev
/
openstatus
5
fork
atom
Openstatus
www.openstatus.dev
5
fork
atom
overview
issues
pulls
pipelines
please
thibault.tngl.sh
3 months ago
8ac4b7d1
cf747b31
+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
···
123
123
}
124
124
125
125
console.log({customDomain: _page.customDomain, host, expectedHost: `${_page.slug}.stpg.dev`})
126
126
-
if (_page.customDomain && host !== `${_page.slug}.stpg.dev`) {
126
126
+
if (_page.customDomain && url.host !== `${_page.slug}.stpg.dev`) {
127
127
if (pathnames.length > 2) {
128
128
const pathname = pathnames.slice(2).join("/");
129
129
const rewriteUrl = new URL(`/${_page.slug}/${pathname}`, req.url);