Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
feat!: constrain AppSettings.ENVIRONMENT
Browse files Browse the repository at this point in the history
We are starting to amass a bit of functionality that is condition upon
the environment setting. E.g., sentry init disabled by default in
test and local environments, alternate logging config if environment is
local, and server reloading automatically configured for local
environment. So allowing this setting to be _anything_ doesn't make a
lot of sense.

Closes #244
  • Loading branch information
peterschutt committed Jan 16, 2023
1 parent ef00c0b commit 0fa69d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/starlite_saqlalchemy/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Config:
"""Check for redis readiness on startup."""
DEBUG: bool = False
"""Run `Starlite` with `debug=True`."""
ENVIRONMENT: str = "prod"
ENVIRONMENT: Literal["dev", "local", "prod", "stage", "test"] = "prod"
"""'dev', 'prod', etc."""
NAME: str = "my-starlite-saqlalchemy-app"
"""Application name."""
Expand Down

0 comments on commit 0fa69d5

Please sign in to comment.