We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20e9419 + 13f7343 commit 6ebc6e3Copy full SHA for 6ebc6e3
docs/next.config.js
@@ -3,6 +3,8 @@ const withNextra = require("nextra")({
3
themeConfig: "./theme.config.tsx"
4
})
5
6
+const isGitHubPages = process.env.GITHUB_ACTIONS === 'true'
7
+
8
module.exports = withNextra({
9
reactStrictMode: true,
10
trailingSlash: true,
@@ -11,5 +13,5 @@ module.exports = withNextra({
11
13
images: {
12
14
unoptimized: true
15
},
- basePath: process.env.NODE_ENV === 'production' ? "/evolution-sdk" : "",
16
+ basePath: isGitHubPages ? "/evolution-sdk" : "",
17
0 commit comments