upda
Browse files- server/server.py +4 -1
server/server.py
CHANGED
@@ -77,8 +77,11 @@ async def shutdown_event():
|
|
77 |
|
78 |
# Mount static files (this should be after all API routes)
|
79 |
if IS_DOCKER:
|
|
|
|
|
|
|
80 |
# En mode Docker (HF Space), on monte les fichiers statiques avec des types MIME spécifiques
|
81 |
-
app.mount("/assets", StaticFiles(directory=os.path.join(STATIC_FILES_DIR, "assets"), html=False), name="assets")
|
82 |
|
83 |
# @app.get("/{full_path:path}")
|
84 |
# async def serve_spa(full_path: str):
|
|
|
77 |
|
78 |
# Mount static files (this should be after all API routes)
|
79 |
if IS_DOCKER:
|
80 |
+
# Mount static files
|
81 |
+
app.mount("/", StaticFiles(directory="static", html=True), name="static")
|
82 |
+
|
83 |
# En mode Docker (HF Space), on monte les fichiers statiques avec des types MIME spécifiques
|
84 |
+
# app.mount("/assets", StaticFiles(directory=os.path.join(STATIC_FILES_DIR, "assets"), html=False), name="assets")
|
85 |
|
86 |
# @app.get("/{full_path:path}")
|
87 |
# async def serve_spa(full_path: str):
|