From 9f376ec8d2f34f087ddce6d18460720e49f0d9dd Mon Sep 17 00:00:00 2001 From: Raymond Htet Date: Sat, 13 Jul 2024 13:40:38 +0800 Subject: [PATCH] export path map --- next.config.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/next.config.js b/next.config.js index 1582137..eb58667 100644 --- a/next.config.js +++ b/next.config.js @@ -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' }, + } + }, + } +