Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
wip: remove subdomain rewrite
Maximilian Kaske9e10188c1c4c
diff --git a/apps/status-page/next.config.ts b/apps/status-page/next.config.tsindex d99e79a9e..f8cde4e8a 100644--- a/apps/status-page/next.config.ts+++ b/apps/status-page/next.config.ts@@ -12,41 +12,41 @@ const nextConfig: NextConfig = {fullUrl: true,},},- async rewrites() {- return {- beforeFiles: [- {- source:- "/:path((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",- has: [- {- type: "host",- value:- process.env.NODE_ENV === "production"- ? "(?<subdomain>[^.]+)\\.stpg\\.dev"- : "(?<subdomain>[^.]+)\\.localhost",- },- ],- missing: [- // Skip this rewrite when the request came via proxy from web app- {- type: "header",- key: "x-proxy",- value: "1",- },- {- type: "host",- value:- process.env.NODE_ENV === "production"- ? "www\\.stpg\\.dev"- : "www\\.localhost",- },- ],- destination: "/:subdomain/:path*",- },- ],- };- },+ // async rewrites() {+ // return {+ // beforeFiles: [+ // {+ // source:+ // "/:path((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",+ // has: [+ // {+ // type: "host",+ // value:+ // process.env.NODE_ENV === "production"+ // ? "(?<subdomain>[^.]+)\\.stpg\\.dev"+ // : "(?<subdomain>[^.]+)\\.localhost",+ // },+ // ],+ // missing: [+ // // Skip this rewrite when the request came via proxy from web app+ // {+ // type: "header",+ // key: "x-proxy",+ // value: "1",+ // },+ // {+ // type: "host",+ // value:+ // process.env.NODE_ENV === "production"+ // ? "www\\.stpg\\.dev"+ // : "www\\.localhost",+ // },+ // ],+ // destination: "/:subdomain/:path*",+ // },+ // ],+ // };+ // },};export default nextConfig;