fix(env): fix

This commit is contained in:
zhangheng
2026-03-16 18:00:40 +08:00
parent c8b2311488
commit d0b4a9a760
3 changed files with 8 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ NEXT_PUBLIC_BASE_PATH=""
NEXT_PUBLIC_ENV=staging NEXT_PUBLIC_ENV=staging
# redis # redis
NEXT_PUBLIC_REDIS_URL="172.16.112.128" NEXT_PUBLIC_REDIS_URL="172.30.21.213"
NEXT_PUBLIC_REDIS_PORT=9765 NEXT_PUBLIC_REDIS_PORT=9765
NEXT_PUBLIC_REDIS_PASSWORD=password NEXT_PUBLIC_REDIS_PASSWORD=password
NEXT_PUBLIC_REDIS_USERNAME=default NEXT_PUBLIC_REDIS_USERNAME=default

View File

@@ -1,4 +1,6 @@
export const BASE_LABEL_API = export const BASE_LABEL_API =
process.env.NEXT_PUBLIC_ENV === "production" process.env.NEXT_PUBLIC_ENV === "production"
? "https://label.cowarobot.com" ? "https://label.cowarobot.com"
: process.env.NEXT_PUBLIC_ENV === "staging"
? "https://label.softtest.cowarobot.com"
: "https://label.softtest.cowarobot.com" : "https://label.softtest.cowarobot.com"

View File

@@ -4,7 +4,9 @@ import { Login } from "./types"
const BASE_PATH = const BASE_PATH =
process.env.NEXT_PUBLIC_ENV === "production" process.env.NEXT_PUBLIC_ENV === "production"
? "https://label.soft.cowarobot.com" ? "https://label.cowarobot.com"
: process.env.NEXT_PUBLIC_ENV === "staging"
? "https://label.softtest.cowarobot.com"
: "https://label.softtest.cowarobot.com" : "https://label.softtest.cowarobot.com"
// 获取验证码 // 获取验证码