diff --git a/__init__.py b/__init__.py index 9e15143..7066792 100644 --- a/__init__.py +++ b/__init__.py @@ -56,7 +56,11 @@ if os.path.exists(dist_path): ) server.PromptServer.instance.app.add_routes([ + # Registered before the static mounts below (and before core's own + # /extensions/ mount, which happens later in server.add_routes), + # so aiohttp registration order lets these win for index.js. web.get(f"/{project_name}/index.js", _serve_editor_index), + web.get(f"/extensions/{project_name}/index.js", _serve_editor_index), web.static(f"/{project_name}/", dist_path), ])