Skip to content

Open-source status page, incident response and uptime monitoring

😱

Thibault Le Ouayb67cd38d5cbf
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index b816faef1..bfc29cfab 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -102,11 +102,24 @@ const nextConfig = {
{
type: "host",
value:
- "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)(?<domain>.+)$",
+ "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)$",
},
],
destination: "https://www.stpg.dev/:path*",
},
+ {
+ source:
+ "/:path((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",
+ has: [
+ { type: "cookie", key: "sp_mode", value: "new" },
+ {
+ type: "host",
+ value:
+ "^(?<domain>.+)$",
+ },
+ ],
+ destination: "https://www.stpg.dev/:domain*",
+ },
// Handle API routes for custom domains
{
source: "/api/:path*",