From 8dd350bcb0c47dfaa84ebbbf06588dad29d98a58 Mon Sep 17 00:00:00 2001 From: Maximilian Kaske <56969857+mxkaske@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:53:26 +0100 Subject: [PATCH] chore: app subdomain rewrites (#1113) * chore: app subdomain rewrites * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- apps/web/next.config.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index e5ffaf80..e9ed9829 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( -- 2.51.2