Skip to content

Commit 7dde33f

Browse files
sync dev to discord-invite-api
2 parents 99252d1 + 8453372 commit 7dde33f

72 files changed

Lines changed: 1565 additions & 246 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ module.exports = {
4747
routes: {
4848
authRedirection: "/goto",
4949
},
50+
goalAPI: {
51+
baseUrl: "https://goal-api.realdevsquad.com",
52+
secretKey: "<goalSecretKey>",
53+
cookieName: `goals-session-${NODE_ENV}`,
54+
},
5055
},
5156
discordBot: {
5257
baseUrl: "<DISCORD_BOT_BASE_URL>",

config/development.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ module.exports = {
2323
authRedirection: "/healthcheck",
2424
},
2525
},
26+
27+
goalAPI: {
28+
baseUrl: "https://backend-goals-production.up.railway.app",
29+
secretKey: "123456789",
30+
},
2631
},
2732

2833
userToken: {

config/staging.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ module.exports = {
1717
rdsApi: {
1818
baseUrl: "https://staging-api.realdevsquad.com",
1919
},
20+
goalAPI: {
21+
baseUrl: "https://backend-goals-production.up.railway.app",
22+
secretKey: "123456789",
23+
},
2024
},
2125

2226
integrations: {

config/test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ module.exports = {
3636
discordBot: {
3737
baseUrl: "DISCORD_BASE_URL",
3838
},
39+
goalAPI: {
40+
baseUrl: "<goalBaseUrl>",
41+
secretKey: "<goalSecretKey>",
42+
cookieName: `goals-session-test`,
43+
},
3944
},
4045

4146
cors: {
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const DOCUMENT_WRITE_SIZE = 500;
2-
31
const ERROR_MESSAGES = {
42
MODELS: {
53
REMOVE_BADGES: "Error removing badges",
@@ -42,7 +40,6 @@ const SUCCESS_MESSAGES = {
4240
};
4341

4442
module.exports = {
45-
DOCUMENT_WRITE_SIZE,
4643
ERROR_MESSAGES,
4744
SUCCESS_MESSAGES,
4845
};
File renamed without changes.

0 commit comments

Comments
 (0)