Skip to content

Commit

Permalink
Create forwarding for section under 'build' directory (#1816)
Browse files Browse the repository at this point in the history
* Create forwarding for section under 'build' directory

* Remove comment
  • Loading branch information
martineckardt authored Aug 10, 2024
1 parent feedaae commit 2b026a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ const withMDX = createMDX({
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
async redirects() {
return [
{
source: '/build/:path*',
destination: '/:path*',
permanent: true,
},
]
},
};

export default withMDX(config);

0 comments on commit 2b026a5

Please sign in to comment.