Skip to content

Commit f47d5c1

Browse files
committed
docs: add basePath for GitHub Pages deployment
1 parent 683bb56 commit f47d5c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/next.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ const withNextra = require('nextra')({
44
themeConfig: './theme.config.tsx',
55
});
66

7+
const isProduction = process.env.NODE_ENV === 'production';
8+
const basePath = isProduction ? '/experience-sdk' : '';
9+
710
module.exports = withNextra({
811
output: 'export',
12+
basePath,
913
images: {
1014
unoptimized: true,
1115
},

0 commit comments

Comments
 (0)