diff --git a/app/main.py b/app/main.py
index 1d6697af..d255c451 100644
--- a/app/main.py
+++ b/app/main.py
@@ -20,10 +20,6 @@ from app.api import router as api_router
from app.frontend import router as frontend_router
from app.auth import router as auth_router
-BASE_DIR = Path(__file__).resolve().parent # this is /app in many Docker setups
-FRONTEND_DIR = BASE_DIR / "frontend"
-
-
# Load configuration from .env for the session key
config = Config(".env")
@@ -173,7 +169,7 @@ async def ui_upload(file: UploadFile = File(...)):
@app.exception_handler(404)
async def custom_404_handler(request: Request, exc: HTTPException):
return FileResponse(
- FRONTEND_DIR / "404.html",
+ "/app/frontend/404.html",
status_code=status.HTTP_404_NOT_FOUND
)
diff --git a/frontend/404.html b/frontend/404.html
index d953dd52..c085430d 100644
--- a/frontend/404.html
+++ b/frontend/404.html
@@ -50,27 +50,44 @@
-
-
+
+