Skip to content

Commit 000af12

Browse files
author
xyzjesper
committed
Update package.json and fix SENTRY
1 parent aee35f4 commit 000af12

File tree

8 files changed

+17
-13
lines changed

8 files changed

+17
-13
lines changed

.github/workflows/customer-builder.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
env:
1616
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
1717
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
18+
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
1819
jobs:
1920
push:
2021
name: "Customer Builder"

.github/workflows/disbot-builder.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
env:
1616
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
1717
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
18+
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
1819
jobs:
1920
push:
2021
name: "DisBot Builder"

bun.lock

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@t3-oss/env-nextjs": "^0.13.8",
2727
"@top-gg/sdk": "^3.1.6",
2828
"@types/body-parser": "^1.19.6",
29-
"axios": "^1.10.0",
29+
"axios": "1.11.0",
3030
"body-parser": "^2.2.0",
3131
"canvacord": "^6.0.2",
3232
"canvas": "^3.1.2",
@@ -48,7 +48,7 @@
4848
"moment": "^2.30.1",
4949
"mongoose": "^8.16.3",
5050
"ms": "^2.1.3",
51-
"multer": "^2.0.1",
51+
"multer": "2.0.2",
5252
"ngrok": "^5.0.0-beta.2",
5353
"node-fetch": "^3.3.2",
5454
"node-gyp": "^11.2.0",

src/main/bot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ client
189189

190190
process.setMaxListeners(0);
191191
client.setMaxListeners(0);
192-
if (Config.Logging.SentryDsn) {
192+
if (process.env.SENTRY_DSN) {
193193
Sentry.init({
194-
dsn: Config.Logging.SentryDsn,
194+
dsn: process.env.SENTRY_DSN,
195195
tracesSampleRate: 1.0,
196196
environment: process.env.NODE_ENV || "development",
197197
release: botData.version,

src/main/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ export async function configStartup() {
7474
BotLoggingApiPort: 0,
7575
BotLoggingPassword: "",
7676
ErrorWebhook: "",
77-
SentryDsn: "",
78-
SentryAuthToken: "",
7977
BotLogger: "",
8078
},
8179
BotType: "",

src/main/startup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ colors.enable();
1010
await configStartup();
1111

1212
Sentry.init({
13-
dsn: Config.Logging.SentryDsn,
13+
dsn: process.env.SENTRY_DSN,
1414
sendDefaultPii: true,
1515
});
1616

src/types/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ export type DisBotConfigData = {
6262
BotLoggingApiPort: number;
6363
BotLoggingPassword: string;
6464
ErrorWebhook: string;
65-
SentryDsn: string;
66-
SentryAuthToken: string;
6765
BotLogger: string;
6866
};
6967
BotType: string;

0 commit comments

Comments
 (0)