Skip to content

Commit 2d8b78d

Browse files
committed
chore: Scripts - start_local - Made the backend compatible with latest UI build base URL and repo name
1 parent 178a518 commit 2d8b78d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

start_local.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ def health_check():
261261
this_dir / ".." / "pipeline-studio-app" / "build",
262262
this_dir / ".." / "frontend" / "build",
263263
this_dir / ".." / "frontend_build",
264+
this_dir / ".." / "tangle-ui" / "dist",
265+
this_dir / ".." / "ui_build",
264266
this_dir / "pipeline-studio-app" / "build",
267+
this_dir / "ui_build",
265268
]
266269
found_frontend_build_files = False
267270
for web_app_dir in web_app_search_dirs:
@@ -272,6 +275,11 @@ def health_check():
272275
)
273276
# The Web app base URL is currently static and hardcoded.
274277
# TODO: Remove this mount once the base URL becomes relative.
278+
app.mount(
279+
"/tangle-ui/",
280+
staticfiles.StaticFiles(directory=web_app_dir, html=True),
281+
name="static",
282+
)
275283
app.mount(
276284
"/pipeline-studio-app/",
277285
staticfiles.StaticFiles(directory=web_app_dir, html=True),

0 commit comments

Comments
 (0)