修复错误

This commit is contained in:
yml
2026-04-09 18:11:02 +08:00
parent 4c395103a9
commit a95247cd01
6 changed files with 27 additions and 11 deletions
+5
View File
@@ -149,6 +149,11 @@ function applyEnvOverrides(baseConfig) {
const claimBaseUrl = String(process.env.CLAIM_BASE_URL || '').trim()
if (claimBaseUrl) {
nextConfig.orders.claimBaseUrl = claimBaseUrl
} else {
const appBaseUrl = String(process.env.APP_BASE_URL || '').trim()
if (appBaseUrl) {
nextConfig.orders.claimBaseUrl = `${appBaseUrl.replace(/\/+$/, '')}/#/claim`
}
}
const tokenTtlHours = parseInteger(process.env.CLAIM_TOKEN_TTL_HOURS)