Skip to content

Open-source status page, incident response and uptime monitoring

😂

Thibault Le Ouay408fe501e6ab
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index bfc29cfab..4c10b472a 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -109,7 +109,7 @@ const nextConfig = {
},
{
source:
- "/:path((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",
+ "/:path((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt|events|monitors).*)",
has: [
{ type: "cookie", key: "sp_mode", value: "new" },
{
@@ -120,6 +120,19 @@ const nextConfig = {
],
destination: "https://www.stpg.dev/:domain*",
},
+ {
+ 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/:path*",
+ },
// Handle API routes for custom domains
{
source: "/api/:path*",