Skip to content

Commit 121d3d7

Browse files
committed
feat: add config module with environment settings and validation
1 parent 91bf9fc commit 121d3d7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

backend/app/core/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
BeforeValidator,
88
EmailStr,
99
HttpUrl,
10-
PostgresDsn,
1110
computed_field,
1211
model_validator,
1312
)
@@ -59,7 +58,7 @@ def all_cors_origins(self) -> list[str]:
5958

6059
@computed_field # type: ignore[prop-decorator]
6160
@property
62-
def SQLALCHEMY_DATABASE_URI(self) -> PostgresDsn:
61+
def SQLALCHEMY_DATABASE_URI(self) -> MultiHostUrl:
6362
return MultiHostUrl.build(
6463
scheme="postgresql+psycopg",
6564
username=self.POSTGRES_USER,

0 commit comments

Comments
 (0)