diff --git a/backend/app/core/config.py b/backend/app/core/config.py index 44e1f0a..416910a 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -35,13 +35,16 @@ class Settings(BaseSettings): SECRET_KEY: str = secrets.token_urlsafe(32) # 60 minutes * 24 hours * 8 days = 8 days ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 8 - # FRONTEND_HOST: str = "http://localhost:5173" - FRONTEND_HOST: str = "https://dashboard.daheimao.top" + FRONTEND_HOST: str = "http://localhost:5173" + # FRONTEND_HOST: str = "https://dashboard.daheimao.top" ENVIRONMENT: Literal["local", "staging", "production"] = "local" BACKEND_CORS_ORIGINS: Annotated[ list[AnyUrl] | str, BeforeValidator(parse_cors) - ] = [] + ] = [ + "http://dashboard.daheimao.top", + "https://dashboard.daheimao.top", + ] @computed_field # type: ignore[prop-decorator] @property