Bläddra i källkod

Add API constant to env

Tatiana Inama 6 år sedan
förälder
incheckning
2751601a9b
2 ändrade filer med 2 tillägg och 0 borttagningar
  1. 1 0
      recipes/.env
  2. 1 0
      recipes/.env.production

+ 1 - 0
recipes/.env

@@ -1,5 +1,6 @@
 SASS_PATH=node_modules:src
 NODE_PATH=src/
+REACT_APP_API='http://192.168.2.199:3000'
 REACT_APP_API_RECIPES='http://192.168.2.199:3000/recipes'
 REACT_APP_API_PLANNER='http://192.168.2.199:3000/planner'
 REACT_APP_API_SHOPPING='http://192.168.2.199:3000/shopping'

+ 1 - 0
recipes/.env.production

@@ -1,5 +1,6 @@
 SASS_PATH=node_modules:src
 NODE_PATH=src/
+REACT_APP_API='/api/'
 REACT_APP_API_RECIPES='/api/recipes'
 REACT_APP_API_PLANNER='/api/planner'
 REACT_APP_API_SHOPPING='/api/shopping'