Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix: subdomain
Maximilian Kaskef0eaf77b892a
diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex aa1f7f798..62a6d84de 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -45,6 +45,7 @@ const nextConfig = {async headers() {return [{ source: "/(.*)", headers: securityHeaders }];},+ trailingSlash: true,async redirects() {return [{@@ -65,9 +66,6 @@ const nextConfig = {];},async rewrites() {- const HOST =- process.env.NODE_ENV === "development" ? "localhost:3001" : "stpg.dev";- const PROTOCOL = process.env.NODE_ENV === "development" ? "http" : "https";return {beforeFiles: [// Proxy app subdomain to /app@@ -81,21 +79,9 @@ const nextConfig = {],destination: "/app/:path*",},- // New design: proxy Next.js assets from external host when cookie indicates "new"- {- source: "/_next/:path*",- has: [- { type: "cookie", key: "sp_mode", value: "new" },- {- type: "host",- value: "(?<slug>[^.]+)\\.(openstatus\\.dev|localhost)",- },- ],- destination: `${PROTOCOL}://${HOST}/_next/:path*`,- },// New design: proxy app routes to external host with slug prefix{- source: "/:path((?!_next/).*)",+ source: "/:path*",has: [{ type: "cookie", key: "sp_mode", value: "new" },{@@ -103,8 +89,7 @@ const nextConfig = {value: "(?<slug>[^.]+)\\.(openstatus\\.dev|localhost)",},],- // NOTE: might be different on prod and localhost (without :slug)- destination: `${PROTOCOL}://${HOST}/:slug/:path*`,+ destination: "https://:slug.stpg.dev/:path*",},],};