Spaces:
Running
Running
alessandro trinca tornidor
commited on
Commit
•
db29e38
1
Parent(s):
a7bd6a6
feat: add custom "/static" mount folder used by custom pages
Browse files
app.py
CHANGED
@@ -261,6 +261,7 @@ app_logger.info("build_frontend ok!")
|
|
261 |
templates = Jinja2Templates(directory="templates")
|
262 |
|
263 |
|
|
|
264 |
# important: the index() function and the app.mount MUST be at the end
|
265 |
# samgis.html
|
266 |
app.mount(CUSTOM_SAMGIS_URL, StaticFiles(directory=static_dist_folder, html=True), name="samgis")
|
|
|
261 |
templates = Jinja2Templates(directory="templates")
|
262 |
|
263 |
|
264 |
+
app.mount("/static", StaticFiles(directory=static_dist_folder, html=True), name="static")
|
265 |
# important: the index() function and the app.mount MUST be at the end
|
266 |
# samgis.html
|
267 |
app.mount(CUSTOM_SAMGIS_URL, StaticFiles(directory=static_dist_folder, html=True), name="samgis")
|