feat(ci): add file

This commit is contained in:
zhangheng
2026-03-28 16:39:10 +08:00
parent aa1992f9d9
commit 592e246426
4 changed files with 21 additions and 4 deletions

View File

@@ -23,6 +23,6 @@ sync_github:
- rm -rf ${CI_PROJECT_NAME} - rm -rf ${CI_PROJECT_NAME}
- git clone https://oauth2:glpat-EdU8a_84jpSH2nOlNTkpnW86MQp1OjY1CA.01.0y1rtht99@git.cowarobot.com/${CI_PROJECT_PATH} - git clone https://oauth2:glpat-EdU8a_84jpSH2nOlNTkpnW86MQp1OjY1CA.01.0y1rtht99@git.cowarobot.com/${CI_PROJECT_PATH}
- cd ${CI_PROJECT_NAME} - cd ${CI_PROJECT_NAME}
- bash build.sh - bash build.sh prod
rules: rules:
- if: $CI_COMMIT_BRANCH == "main" - if: $CI_COMMIT_BRANCH == "main"

View File

@@ -1,6 +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.soft.cowarobot.com"
: process.env.NEXT_PUBLIC_ENV === "staging" : process.env.NEXT_PUBLIC_ENV === "staging"
? "http://172.16.115.128:9110" ? "http://172.16.115.128:9110"
: "https://label.softtest.cowarobot.com" : "https://label.softtest.cowarobot.com"

View File

@@ -47,7 +47,24 @@ export const subConfigList: { source: string; url: string }[] =
url: "http://172.16.115.128:5535", url: "http://172.16.115.128:5535",
}, },
] ]
: [] : [
{
source: "/image",
url: "https://label.soft.cowarobot.com",
},
{
source: "/video",
url: "https://label.soft.cowarobot.com",
},
{
source: "/lidar",
url: "https://label.soft.cowarobot.com",
},
{
source: "/mgt",
url: "https://label.soft.cowarobot.com",
},
]
const currentComponentList: MenuItem[] = [ const currentComponentList: MenuItem[] = [
{ {

View File

@@ -4,7 +4,7 @@ import { Login } from "./types"
const BASE_PATH = const BASE_PATH =
process.env.NEXT_PUBLIC_ENV === "production" process.env.NEXT_PUBLIC_ENV === "production"
? "https://label.cowarobot.com" ? "https://label.soft.cowarobot.com"
: process.env.NEXT_PUBLIC_ENV === "staging" : process.env.NEXT_PUBLIC_ENV === "staging"
? "http://172.16.115.128:9110" ? "http://172.16.115.128:9110"
: "https://label.softtest.cowarobot.com" : "https://label.softtest.cowarobot.com"