Skip to content

Commit

Permalink
add static route
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondhtet committed Jul 13, 2024
1 parent 8537222 commit 408fdf5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ const nextConfig = {
output: 'export',
distDir: 'dist',
reactStrictMode: false,
trailingSlash: true
trailingSlash: true,
exportPathMap: async function (
defaultPathMap,
{ dev, dir, outDir, distDir, buildId }
) {
return {
'/': { page: '/' },
'/dashboard': { page: '/dashboard/' },
}
},

}

module.exports = nextConfig;

0 comments on commit 408fdf5

Please sign in to comment.