Explorar el Código

base url setting

lybenson hace 5 años
padre
commit
67bb84af9d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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'