瀏覽代碼

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'