tangled
alpha
login
or
join now
openstatus.dev
/
openstatus
6
fork
atom
Openstatus
www.openstatus.dev
6
fork
atom
overview
issues
pulls
pipelines
wtf: rewrite
Maximilian Kaske
6 months ago
a8b362e4
9b227008
+15
-1
1 changed file
expand all
collapse all
unified
split
apps
web
next.config.js
+15
-1
apps/web/next.config.js
reviewed
···
95
95
},
96
96
// Handle custom domains (e.g., status.mxkaske.dev)
97
97
{
98
98
-
source: "/:path*",
98
98
+
source:
99
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
109
+
},
110
110
+
{
111
111
+
source:
112
112
+
"/:path((api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",
113
113
+
has: [
114
114
+
{ type: "cookie", key: "sp_mode", value: "new" },
115
115
+
{
116
116
+
type: "host",
117
117
+
value:
118
118
+
"^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)(?<domain>.+)$",
119
119
+
},
120
120
+
],
121
121
+
destination: "https://www.stpg.dev/:path*",
108
122
},
109
123
],
110
124
};