Skip to content

Open-source status page, incident response and uptime monitoring

wip: remove subdomain rewrite

Maximilian Kaske9e10188c1c4c
diff --git a/apps/status-page/next.config.ts b/apps/status-page/next.config.ts
index 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;