Add sentry support
ci/woodpecker/push/check Pipeline failed

This commit is contained in:
PapaTutuWawa committed 2025-05-18 21:14:57 +02:00
1 parent 7033a18a64
commit 65c577ab03
5 files changed
+326 -277

No files matched your search

+8
View File
@@ -79,6 +79,11 @@ class _DatabaseConfig(BaseModel):
return cast(str, self.uri_plain)
class _SentryConfig(BaseModel):
# The Sentry DSN.
dsn: str
class _Config(BaseModel):
# Database config
database: _DatabaseConfig
@@ -86,6 +91,9 @@ class _Config(BaseModel):
# Component configuration
component: _ComponentConfig
# Optional Sentry config
sentry: _SentryConfig | None
@cache
def load_config() -> _Config: