Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix env variable names #3

Merged
merged 1 commit into from
May 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;