diff --git a/components/login/api/index.ts b/components/login/api/index.ts index ad74cb8..ed49bab 100644 --- a/components/login/api/index.ts +++ b/components/login/api/index.ts @@ -1,5 +1,6 @@ import httpFetch from "@/api/fetch" import { ResultData } from "@/api/typing" +import { BASE_LABEL_API } from "@/components/label/api/const" import { Login } from "./types" const BASE_PATH = @@ -68,7 +69,7 @@ export const deleteCookie = () => { // /api/v1/label_server/user/permission export const getUserPermission = () => { return httpFetch({ - url: `/api/v1/label_server/user/permission`, + url: BASE_LABEL_API + `/api/v1/label_server/user/permission`, method: "GET", }) } diff --git a/package.json b/package.json index 1fcb2b2..9ab85bb 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,10 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "NEXT_PUBLIC_URL=https://frontside2.soft.cowarobot.com NEXT_PUBLIC_OUTPUT_TYPE=standalone next dev --turbopack -p 5531", + "dev": "NEXT_PUBLIC_URL=http://172.16.112.8:9110 NEXT_PUBLIC_OUTPUT_TYPE=standalone next dev --turbopack -p 5531", "dev:export": "NEXT_PUBLIC_URL=http://172.16.112.8:9110 NEXT_PUBLIC_OUTPUT_TYPE=export next dev --turbopack -p 5531", - "dev:standalone": "NEXT_PUBLIC_URL=https://frontside2.soft.cowarobot.com NEXT_PUBLIC_OUTPUT_TYPE=standalone next dev next dev --turbopack -p 5531", - "build:standalone-stage": "NEXT_PUBLIC_URL=https://frontside2.soft.cowarobot.com NEXT_PUBLIC_OUTPUT_TYPE=standalone env-cmd -f .env.staging next build --turbopack", + "dev:standalone": "NEXT_PUBLIC_URL=http://172.16.112.8:9110 NEXT_PUBLIC_OUTPUT_TYPE=standalone next dev next dev --turbopack -p 5531", + "build:standalone-stage": "NEXT_PUBLIC_URL=http://172.16.112.8:9110 NEXT_PUBLIC_OUTPUT_TYPE=standalone env-cmd -f .env.staging next build --turbopack", "prebuild:export-stage": "node scripts/disable-api-route.mjs", "build:export-stage": "NEXT_PUBLIC_URL=http://172.16.112.8:9110 NEXT_PUBLIC_OUTPUT_TYPE=export env-cmd -f .env.staging next build --turbopack", "postbuild:export-stage": "node scripts/restore-api-route.mjs", @@ -97,4 +97,4 @@ "typescript": "^5" }, "packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b" -} \ No newline at end of file +}