Browse Source

edit config.js 🔧

main
Gautier couture 6 years ago
parent
commit
431c890257
  1. 2
      Dockerfile
  2. 2
      src/common/config.js

2
Dockerfile

@ -6,5 +6,5 @@ RUN yarn install
COPY . . COPY . .
EXPOSE 8080
EXPOSE 2020
CMD ["yarn", "serve"] CMD ["yarn", "serve"]

2
src/common/config.js

@ -1,5 +1,5 @@
export const API_URL = export const API_URL =
process.env.NODE_ENV === "production" process.env.NODE_ENV === "production"
? "https://tobedefined.io/api"
? "https://secret-ocean-88862.herokuapp.com/api"
: "http://localhost:2020/api"; : "http://localhost:2020/api";
export default API_URL; export default API_URL;
Loading…
Cancel
Save