We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e56d9b commit b77db25Copy full SHA for b77db25
next.config.mjs
@@ -4,7 +4,7 @@ const config = async (phase, { defaultConfig }) => {
4
const withNextra = nextra({});
5
return {
6
...withNextra(),
7
- basePath: process.env.BASE_PATH || '',
+ basePath: process.env?.BASE_PATH === undefined || process.env?.BASE_PATH === '/' ? '' : process.env?.BASE_PATH,
8
output: 'export',
9
eslint: {
10
ignoreDuringBuilds: true,
0 commit comments