We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae50cd1 commit 409d953Copy full SHA for 409d953
docs/next.config.js
@@ -1,9 +1,11 @@
1
+const isProd = process.env.NODE_ENV === 'production';
2
+
3
const withNextra = require('nextra')({
4
theme: 'nextra-theme-docs',
5
themeConfig: './theme.config.tsx',
6
defaultShowCopyCode: true,
7
});
8
9
module.exports = withNextra({
- basePath: '/docs'
10
+ basePath: isProd ? '/docs' : '',
11
0 commit comments