Skip to content

Open-source status page, incident response and uptime monitoring

wtf: rewrite

Maximilian Kaskea8b362e4ca35
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index cd63d9df7..4abf53dc6 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -95,7 +95,8 @@ const nextConfig = {
},
// Handle custom domains (e.g., status.mxkaske.dev)
{
- source: "/:path*",
+ source:
+ "/:path((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",
has: [
{ type: "cookie", key: "sp_mode", value: "new" },
{
@@ -106,6 +107,19 @@ const nextConfig = {
],
destination: "https://www.stpg.dev/:domain/: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:
+ "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)(?<domain>.+)$",
+ },
+ ],
+ destination: "https://www.stpg.dev/:path*",
+ },
],
};
},