Skip to content

Commit

Permalink
feat: update next asset prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
adeleke5140 committed Jan 2, 2025
1 parent 6d37960 commit 52fe289
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@ const withNextra = nextra({
});

export default withNextra({
assetPrefix: process.env.NODE_ENV === 'production' ? '/docs' : '',
async rewrites() {
return {
beforeFiles: [
{
source: '/docs/_next/:path+',
destination: '/_next/:path+',
},
],
};
},
trailingSlash: false,
});

0 comments on commit 52fe289

Please sign in to comment.