Skip to content

Open-source status page, incident response and uptime monitoring

🤔

Thibault Le Ouay6a3c6cbd68c4
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index cd63d9df7..cc797de7c 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -95,13 +95,25 @@ const nextConfig = {
},
// Handle custom domains (e.g., status.mxkaske.dev)
{
- source: "/:path*",
+ source: "/status-page/:path*",
+ has: [
+ { type: "cookie", key: "sp_mode", value: "new" },
+ {
+ type: "host",
+ value:
+ "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)$",
+ },
+ ],
+ destination: "https://www.stpg.dev/:path*",
+ },
+ {
+ source: "/status-page/:path*",
has: [
{ type: "cookie", key: "sp_mode", value: "new" },
{
type: "host",
value:
- "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)(?<domain>.+)$",
+ "^(?<domain>.+)$",
},
],
destination: "https://www.stpg.dev/:domain/:path*",