Skip to content

Commit

Permalink
modify base path for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kerbethecoder committed Jul 30, 2024
1 parent 117640b commit 261ed36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: '/next',
basePath: process.env.NODE_ENV === 'production' ? '/sveltekit' : '',
output: 'export', // <=== enables static exports
reactStrictMode: true,
};
Expand Down

0 comments on commit 261ed36

Please sign in to comment.