Skip to content

Commit 450f8e2

Browse files
committed
Make basePath conditional for local development
- Only apply basePath when GITHUB_ACTIONS is set - Allows local development with pnpm dev - GitHub Pages deployment still gets correct basePath
1 parent 26596de commit 450f8e2

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

docs/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ module.exports = withNextra({
1111
images: {
1212
unoptimized: true
1313
},
14-
basePath: "/evolution-sdk",
14+
basePath: process.env.GITHUB_ACTIONS ? "/evolution-sdk" : "",
1515
})

docs/pages/reference/_meta.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)