refactor: Promote basepath to environment variable (#24445)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
17hz 2025-08-29 15:39:37 +08:00 • committed by GitHub
commit 0fb145e667
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,6 @@
// export basePath to next.config.js
// same as the one exported from var.ts
module.exports = {
basePath: '',
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
assetPrefix: '',
}