Skip to content

Commit

Permalink
add trailingSlash in next config to handle the trailing slash in the url
Browse files Browse the repository at this point in the history
  • Loading branch information
gio-startree committed Aug 21, 2024
1 parent 6a55c2a commit 721cf17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module.exports = () => {
const plugins = [withContentlayer, withBundleAnalyzer];
return plugins.reduce((acc, next) => next(acc), {
output: 'export',
trailingSlash: true,
// distDir: 'dist',
reactStrictMode: true,
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
Expand Down

0 comments on commit 721cf17

Please sign in to comment.