Skip to content

Open-source status page, incident response and uptime monitoring

chore: app subdomain rewrites (#1113)

Maximilian Kaske8dd350bcb0c4
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index e5ffaf80f..e9ed98298 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -64,6 +64,22 @@ const nextConfig = {
async headers() {
return [{ source: "/(.*)", headers: securityHeaders }];
},
+ async rewrites() {
+ return {
+ beforeFiles: [
+ {
+ source: "/:path*",
+ has: [
+ {
+ type: "host",
+ value: "app.openstatus.dev",
+ },
+ ],
+ destination: "/app/:path*",
+ },
+ ],
+ };
+ },
};
module.exports = withSentryConfig(