Skip to content

Commit

Permalink
Merge pull request #3 from SlaySayto/staging
Browse files Browse the repository at this point in the history
fix env variable names
  • Loading branch information
AhmedBenyahia authored May 31, 2021
2 parents be6fb5e + f24a5fd commit 6080f65
Show file tree
Hide file tree
Showing 8 changed files with 22,980 additions and 34 deletions.
9 changes: 6 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@


AUTH_SERVICE=http://localhost:3001
SCHEDULING_SERVICE=http://localhost:3004
SUBSCRIPTION_SERVICE=http://localhost:3003



REACT_APP_AUTH_SERVICE=https://q1i1f4m6u2.execute-api.eu-west-3.amazonaws.com/default/auth-service
REACT_APP_SCHEDULING_SERVICE=https://7jzhuu58ki.execute-api.eu-west-3.amazonaws.com/default/scheduling_service
REACT_APP_SUBSCRIPTION_SERVICE=https://785k5fo24a.execute-api.eu-west-3.amazonaws.com/default/subscription-service
6 changes: 3 additions & 3 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@



AUTH_SERVICE=https://q1i1f4m6u2.execute-api.eu-west-3.amazonaws.com/default/auth-service
SCHEDULING_SERVICE=https://7jzhuu58ki.execute-api.eu-west-3.amazonaws.com/default/scheduling_service
SUBSCRIPTION_SERVICE=https://785k5fo24a.execute-api.eu-west-3.amazonaws.com/default/subscription-service
REACT_APP_AUTH_SERVICE=https://q1i1f4m6u2.execute-api.eu-west-3.amazonaws.com/default/auth-service
REACT_APP_SCHEDULING_SERVICE=https://7jzhuu58ki.execute-api.eu-west-3.amazonaws.com/default/scheduling_service
REACT_APP_SUBSCRIPTION_SERVICE=https://785k5fo24a.execute-api.eu-west-3.amazonaws.com/default/subscription-service
22,989 changes: 22,965 additions & 24 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"axios": "^0.21.1",
"cogo-toast": "^4.2.3",
"css-vars-ponyfill": "^2.4.3",
"dotenv": "^8.2.0",
"file-saver": "^2.0.5",
"node-sass": "^5.0.0",
"prop-types": "^15.7.2",
Expand All @@ -51,6 +52,7 @@
"web-vitals": "^1.1.1",
"yup": "^0.32.9"
},
"proxy": "https://*.amazonaws.com:*",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
Expand Down
2 changes: 1 addition & 1 deletion src/axios/auth-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from "axios";


const instance=axios.create({
baseURL: process.env.AUTH_SERVICE || "http://localhost:3001"
baseURL: process.env.REACT_APP_AUTH_SERVICE || "http://localhost:3001"
});

export default instance;
2 changes: 1 addition & 1 deletion src/axios/login-register-auth-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from "axios";

//this instance created juste for only the login and register apis
const instance=axios.create({
baseURL: process.env.AUTH_SERVICE || "http://localhost:3001"
baseURL: process.env.REACT_APP_AUTH_SERVICE || "http://localhost:3001"
});

export default instance;
2 changes: 1 addition & 1 deletion src/axios/scheduling-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from "axios";


const instance=axios.create({
baseURL:process.env.SCHEDULING_SERVICE || "http://localhost:3004"
baseURL:process.env.REACT_APP_SCHEDULING_SERVICE || "http://localhost:3004"
});

export default instance;
2 changes: 1 addition & 1 deletion src/axios/subscription-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from "axios";


const instance=axios.create({
baseURL: process.env.SUBSCRIPTION_SERVICE ||"http://localhost:3003"
baseURL: process.env.REACT_APP_SUBSCRIPTION_SERVICE ||"http://localhost:3003"
});

export default instance;

0 comments on commit 6080f65

Please sign in to comment.