Skip to content

Commit

Permalink
export path map
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondhtet committed Jul 13, 2024
1 parent 408fdf5 commit 9f376ec
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
module.exports = {
output: 'export',
distDir: 'dist',
reactStrictMode: false,
trailingSlash: true,
exportPathMap: async function (
defaultPathMap,
{ dev, dir, outDir, distDir, buildId }
) {
return {
'/': { page: '/' },
'/dashboard': { page: '/dashboard/' },
}
},

}

module.exports = nextConfig;
defaultPathMap,
{ dev, dir, outDir, distDir, buildId }
) {
return {
'/': { page: '/' },
'/dashboard': { page: '/dashboard' },
}
},
}

0 comments on commit 9f376ec

Please sign in to comment.