Skip to content

Commit ffff22a

Browse files
committed
add sentry
1 parent f2ae092 commit ffff22a

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

dist/index.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/coolify.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export default class Coolify {
272272
envs: { key: string; value: string | undefined; isMultiLine?: boolean }[]
273273
}) {
274274
for (const env of envs) {
275-
if (!env.value) {
275+
if (!env.value && env.key !== 'SENTRY_DSN') {
276276
throw new Error(`Env ${env.key} has no value`)
277277
}
278278
await this.createOrUpdateEnv({
@@ -463,6 +463,10 @@ export default class Coolify {
463463
{
464464
key: 'PGRST_DB_SCHEMAS',
465465
value: 'public,graphql_public,pgmq_public'
466+
},
467+
{
468+
key: 'SENTRY_DSN',
469+
value: process.env.SENTRY_DSN
466470
}
467471
]
468472
})

0 commit comments

Comments
 (0)