Skip to content

Commit 1d1a917

Browse files
authored
Fix fastapi config variable naming and type (#506)
1 parent 0255283 commit 1d1a917

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/core/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class Settings(BaseSettings):
4343
FASTAPI_TITLE: str = 'FastAPI'
4444
FASTAPI_VERSION: str = '0.0.1'
4545
FASTAPI_DESCRIPTION: str = 'FastAPI Best Architecture'
46-
FASTAPI_DOCS_URL: str | None = '/docs'
47-
FASTAPI_REDOC_URL: str | None = '/redoc'
46+
FASTAPI_DOCS_URL: str = '/docs'
47+
FASTAPI_REDOC_URL: str = '/redoc'
4848
FASTAPI_OPENAPI_URL: str | None = '/openapi'
4949
FASTAPI_STATIC_FILES: bool = True
5050

@@ -185,7 +185,7 @@ class Settings(BaseSettings):
185185
@classmethod
186186
def check_env(cls, values: Any) -> Any:
187187
if values['ENVIRONMENT'] == 'pro':
188-
values['OPENAPI_URL'] = None
188+
values['FASTAPI_OPENAPI_URL'] = None
189189
values['FASTAPI_STATIC_FILES'] = False
190190
return values
191191

0 commit comments

Comments
 (0)