diff --git a/.env.production b/.env.production index 35b86bb..a68234f 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ -NEXT_PUBLIC_BASE_PATH="" +NEXT_PUBLIC_BASE_PATH="/image" NEXT_PUBLIC_ENV=production diff --git a/.env.staging b/.env.staging index cf50bf9..9dcef7b 100644 --- a/.env.staging +++ b/.env.staging @@ -1,9 +1,9 @@ -NEXT_PUBLIC_BASE_PATH="" +NEXT_PUBLIC_BASE_PATH="/image" NEXT_PUBLIC_ENV=staging # 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_PASSWORD=password NEXT_PUBLIC_REDIS_USERNAME=default diff --git a/components/label/api/const.ts b/components/label/api/const.ts index 25355ce..8b520b4 100644 --- a/components/label/api/const.ts +++ b/components/label/api/const.ts @@ -1,4 +1,6 @@ export const BASE_LABEL_API = process.env.NEXT_PUBLIC_ENV === "production" ? "https://label.cowarobot.com" - : "https://label.softtest.cowarobot.com" + : process.env.NEXT_PUBLIC_ENV === "staging" + ? "https://label.softtest.cowarobot.com" + : "https://label.softtest.cowarobot.com" diff --git a/components/login/api/index.ts b/components/login/api/index.ts index fe18dca..a4d5890 100644 --- a/components/login/api/index.ts +++ b/components/login/api/index.ts @@ -4,8 +4,10 @@ import { Login } from "./types" const BASE_PATH = process.env.NEXT_PUBLIC_ENV === "production" - ? "https://label.soft.cowarobot.com" - : "https://label.softtest.cowarobot.com" + ? "https://label.cowarobot.com" + : process.env.NEXT_PUBLIC_ENV === "staging" + ? "https://label.softtest.cowarobot.com" + : "https://label.softtest.cowarobot.com" // 获取验证码 export const getVerifyCode = (params: { phone: string }) => {