diff --git a/src/main.py b/src/main.py index 022cb6f..a96eddc 100644 --- a/src/main.py +++ b/src/main.py @@ -1,7 +1,7 @@ """ Application root file: Inits the FastAPI application """ - +import os.path from contextlib import asynccontextmanager from typing import AsyncGenerator @@ -78,4 +78,5 @@ if settings.DISABLE_AUTH and (settings.ENVIRONMENT == Environment.LOCAL): app.include_router(api_router) -app.frontend("/ui", directory="/app/static", fallback="index.html") +if os.path.exists("/app/static"): + app.frontend("/ui", directory="/app/static", fallback="index.html") diff --git a/static/.gitkeep b/static/.gitkeep deleted file mode 100644 index e69de29..0000000