Skip to content

Commit 380fe1a

Browse files
Update goal configs (#1659)
* change configs for goal api * change to config * add goal API to config/test.js --------- Co-authored-by: Amit Prakash <[email protected]>
1 parent 1289b1e commit 380fe1a

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

config/custom-environment-variables.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ module.exports = {
4545
},
4646
},
4747

48+
goalAPI: {
49+
baseUrl: "GOALS_BASE_URL",
50+
secretKey: "GOALS_SECRET_KEY",
51+
},
52+
4853
discordBot: {
4954
baseUrl: "DISCORD_BASE_URL",
5055
},

config/default.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ module.exports = {
4848
authRedirection: "/goto",
4949
},
5050
goalAPI: {
51-
baseUrl: "",
52-
secretKey: "",
53-
cookieName: "",
51+
baseUrl: "https://goal-api.realdevsquad.com",
52+
secretKey: "<goalSecretKey>",
53+
cookieName: `goals-session-${NODE_ENV}`,
5454
},
5555
},
5656
discordBot: {

config/development.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ module.exports = {
2424
},
2525

2626
goalAPI: {
27-
baseUrl: "",
28-
secretKey: "",
29-
cookieName: "",
27+
baseUrl: "https://backend-goals-production.up.railway.app",
28+
secretKey: "123456789",
3029
},
3130
},
3231

config/staging.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ module.exports = {
1818
baseUrl: "https://staging-api.realdevsquad.com",
1919
},
2020
goalAPI: {
21-
baseUrl: "",
22-
secretKey: "",
23-
cookieName: "",
21+
baseUrl: "https://backend-goals-production.up.railway.app",
22+
secretKey: "123456789",
2423
},
2524
},
2625

config/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ module.exports = {
3636
baseUrl: "DISCORD_BASE_URL",
3737
},
3838
goalAPI: {
39-
baseUrl: "https://goals-api.realdevsquad.com",
40-
secretKey: "123456789",
41-
cookieName: "goals_session",
39+
baseUrl: "<goalBaseUrl>",
40+
secretKey: "<goalSecretKey>",
41+
cookieName: `goals-session-test`,
4242
},
4343
},
4444

0 commit comments

Comments
 (0)