fix: blog links

This commit is contained in:
Rotimi Best
2023-12-13 10:16:21 +03:00
parent 74f3db41bc
commit 8214ffd634
21 changed files with 51 additions and 21 deletions
+6 -1
View File
@@ -1,9 +1,14 @@
const env = process.env.NODE_ENV;
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx'
});
module.exports = {
basePath: '/docs',
basePath: env === 'production' ? '/docs' : undefined,
env: {
imagePath: env === 'production' ? '/docs' : ''
},
...withNextra()
};