Openstatus www.openstatus.dev

wtf: rewrite

+15 -1
+15 -1
apps/web/next.config.js
··· 95 95 }, 96 96 // Handle custom domains (e.g., status.mxkaske.dev) 97 97 { 98 - source: "/:path*", 98 + source: 99 + "/:path((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)", 99 100 has: [ 100 101 { type: "cookie", key: "sp_mode", value: "new" }, 101 102 { ··· 105 106 }, 106 107 ], 107 108 destination: "https://www.stpg.dev/:domain/:path*", 109 + }, 110 + { 111 + source: 112 + "/:path((api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)", 113 + has: [ 114 + { type: "cookie", key: "sp_mode", value: "new" }, 115 + { 116 + type: "host", 117 + value: 118 + "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)(?<domain>.+)$", 119 + }, 120 + ], 121 + destination: "https://www.stpg.dev/:path*", 108 122 }, 109 123 ], 110 124 };