Skip to content

Commit

Permalink
chore: app subdomain rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske committed Nov 25, 2024
1 parent 403afa9 commit 3a3c32c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3a3c32c

Please sign in to comment.