wip config: another try
Co-Authored-by: iGor milhit <igor@milhit.ch>
parent
6d98d4f5aa
commit
297fe13a5e
|
|
@ -0,0 +1,18 @@
|
||||||
|
from pydantic_settings import BaseSettings
|
||||||
|
from functools import lru_cache
|
||||||
|
|
||||||
|
class Settings(BaseSettings):
|
||||||
|
# CORS
|
||||||
|
cors_origins: str = "http://localhost:5173"
|
||||||
|
|
||||||
|
# Autres configurations futures
|
||||||
|
app_name: str = "Dough Calculator"
|
||||||
|
debug: bool = False
|
||||||
|
|
||||||
|
class Config:
|
||||||
|
env_file = ".env"
|
||||||
|
env_file_encoding = "utf-8"
|
||||||
|
|
||||||
|
@lru_cache()
|
||||||
|
def get_settings() -> Settings:
|
||||||
|
return Settings()
|
||||||
Loading…
Reference in New Issue