22 lines
462 B
Python
22 lines
462 B
Python
from functools import lru_cache
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(
|
|
env_file = ".env",
|
|
env_file_encoding = "utf-8"
|
|
)
|
|
|
|
# CORS
|
|
cors_origins: str = "http://localhost:5173"
|
|
|
|
# Autres configurations futures
|
|
app_name: str = "Dough Calculator"
|
|
debug: bool = False
|
|
|
|
@lru_cache
|
|
def get_settings() -> Settings:
|
|
return Settings()
|