fix(env): fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
NEXT_PUBLIC_BASE_PATH=""
|
NEXT_PUBLIC_BASE_PATH="/image"
|
||||||
|
|
||||||
NEXT_PUBLIC_ENV=production
|
NEXT_PUBLIC_ENV=production
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
NEXT_PUBLIC_BASE_PATH=""
|
NEXT_PUBLIC_BASE_PATH="/image"
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@@ -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"
|
||||||
: "https://label.softtest.cowarobot.com"
|
: process.env.NEXT_PUBLIC_ENV === "staging"
|
||||||
|
? "https://label.softtest.cowarobot.com"
|
||||||
|
: "https://label.softtest.cowarobot.com"
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ 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"
|
||||||
: "https://label.softtest.cowarobot.com"
|
: process.env.NEXT_PUBLIC_ENV === "staging"
|
||||||
|
? "https://label.softtest.cowarobot.com"
|
||||||
|
: "https://label.softtest.cowarobot.com"
|
||||||
|
|
||||||
// 获取验证码
|
// 获取验证码
|
||||||
export const getVerifyCode = (params: { phone: string }) => {
|
export const getVerifyCode = (params: { phone: string }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user