diff --git a/apps/wr/components/lib/api/index.ts b/apps/wr/components/lib/api/index.ts index b466054be..1d6dc4935 100644 --- a/apps/wr/components/lib/api/index.ts +++ b/apps/wr/components/lib/api/index.ts @@ -1,11 +1,11 @@ //8880 -import { DEV_URL_FO, DEV_URL_WR } from "../config/"; +import { DEV_URL_COMMON, DEV_URL_WR } from "../config/"; export const getFectch = async( type:string , url: string) => { - const div = type === 'common' ? DEV_URL_FO : DEV_URL_WR + const div = type === 'common' ? DEV_URL_COMMON : DEV_URL_WR const response = await fetch( div+url , { method: "GET", headers: { diff --git a/apps/wr/components/lib/config/index.ts b/apps/wr/components/lib/config/index.ts index 973d1014a..32fd36cc4 100644 --- a/apps/wr/components/lib/config/index.ts +++ b/apps/wr/components/lib/config/index.ts @@ -3,9 +3,9 @@ const LOCAL_PORT = "3000"; const DEV_PORT = "11080"; -const DEV_PORT_COMMON = "11082"; // common +const DEV_URL_FO = "11082"; // common export const LOCAL_URL_WR = `http://localhost:${LOCAL_PORT}/api/v1`; export const DEV_URL_WR = `http://con.mind-one.co.kr:${DEV_PORT}/api/v1`; -export const DEV_URL_COMMON = `http://con.mind-one.co.kr:${DEV_PORT_COMMON}/api/v1`; +export const DEV_URL_COMMON = `http://con.mind-one.co.kr:${DEV_URL_FO}/api/v1`;