Skip to content

Open-source status page, incident response and uptime monitoring

fix: www

Maximilian Kaskeca96c8242c2d
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 377187454..cd63d9df7 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -100,10 +100,11 @@ const nextConfig = {
{ type: "cookie", key: "sp_mode", value: "new" },
{
type: "host",
- value: "(?<domain>.+)",
+ value:
+ "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)(?<domain>.+)$",
},
],
- destination: "https://stpg.dev/:domain/:path*",
+ destination: "https://www.stpg.dev/:domain/:path*",
},
],
};
@@ -137,5 +138,5 @@ module.exports = withSentryConfig(
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
- }
+ },
);