Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix: format (#1405)
Maximilian Kaskeb23211946acb
diff --git a/apps/status-page/src/middleware.ts b/apps/status-page/src/middleware.tsindex 0768ee1e3..6a1105504 100644--- a/apps/status-page/src/middleware.ts+++ b/apps/status-page/src/middleware.ts@@ -84,12 +84,14 @@ export default async function middleware(req: NextRequest) {return NextResponse.rewrite(new URL(`/${prefix}${url.pathname}`, req.url));}- if(_page.customDomain && host !== `${_page.slug}.stpg.dev` ){- if(pathnames.length > 2){+ if (_page.customDomain && host !== `${_page.slug}.stpg.dev`) {+ if (pathnames.length > 2) {const pathname = pathnames.slice(2).join("/");- return NextResponse.rewrite(new URL(`/${_page.slug}/${pathname}`, req.url));+ return NextResponse.rewrite(+ new URL(`/${_page.slug}/${pathname}`, req.url),+ );}- return NextResponse.rewrite(new URL(`/${_page.slug}`, req.url));+ return NextResponse.rewrite(new URL(`/${_page.slug}`, req.url));}return response;diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex 4c10b472a..010d39ac6 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -101,8 +101,7 @@ const nextConfig = {{ type: "cookie", key: "sp_mode", value: "new" },{type: "host",- value:- "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)$",+ value: "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)$",},],destination: "https://www.stpg.dev/:path*",@@ -114,8 +113,7 @@ const nextConfig = {{ type: "cookie", key: "sp_mode", value: "new" },{type: "host",- value:- "^(?<domain>.+)$",+ value: "^(?<domain>.+)$",},],destination: "https://www.stpg.dev/:domain*",@@ -127,8 +125,7 @@ const nextConfig = {{ type: "cookie", key: "sp_mode", value: "new" },{type: "host",- value:- "^(?<domain>.+)$",+ value: "^(?<domain>.+)$",},],destination: "https://www.stpg.dev/:domain/:path*",