Skip to content

Commit 261ed36

Browse files
committed
modify base path for deployment
1 parent 117640b commit 261ed36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3-
basePath: '/next',
3+
basePath: process.env.NODE_ENV === 'production' ? '/sveltekit' : '',
44
output: 'export', // <=== enables static exports
55
reactStrictMode: true,
66
};

0 commit comments

Comments
 (0)