mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(api): setup optional sentry error reporting
This commit is contained in:
parent
d620c03219
commit
56db4cd2e1
5 changed files with 2201 additions and 71 deletions
|
|
@ -35,6 +35,13 @@ import { ConfigModule as NestConfigModule } from "@nestjs/config";
|
|||
DB_USERNAME: Joi.string().required(),
|
||||
DB_PASSWORD: Joi.string().required(),
|
||||
DB_DATABASE: Joi.string().required(),
|
||||
|
||||
// Sentry (Optional)
|
||||
SENTRY_ENABLED: Joi.boolean().default(false),
|
||||
SENTRY_DSN: Joi.string().when("SENTRY_ENABLED", {
|
||||
is: Joi.valid(true),
|
||||
then: Joi.required(),
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue