From 408fdf5f1e25babf7ef10d51164f9df26ca6530f Mon Sep 17 00:00:00 2001 From: Raymond Htet Date: Sat, 13 Jul 2024 13:35:17 +0800 Subject: [PATCH] add static route --- next.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 6b5040f..1582137 100644 --- a/next.config.js +++ b/next.config.js @@ -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;