소스 검색

base url setting

lybenson 5 년 전
부모
커밋
67bb84af9d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/api/urlConfig.js

+ 1 - 1
src/api/urlConfig.js

@@ -1,5 +1,5 @@
 
-const serverRoot = 'http://127.0.0.1:9050'
+const serverRoot = `${process.env.NODE_ENV === 'production' ? 'http://www.lybenson.com' : 'http://127.0.0.1'}:9050`
 
 export const banner = serverRoot + '/banner'