Skip to content

Commit 7638db4

Browse files
committed
fix(plugin): return remoteEntry path without API prefix to avoid double prefix 404
- get_plugin_remote_entry returns /plugin/file/... (relative to API root) - Frontend already prepends API base; adding API_V1_STR caused /api/v1/api/v1/... Made-with: Cursor
1 parent 0312a50 commit 7638db4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/core/plugin.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,7 @@ def get_plugin_remote_entry(plugin_id: str, dist_path: str) -> str:
777777
:return: 远程入口地址
778778
"""
779779
dist_path = dist_path.strip("/")
780-
api_prefix = settings.API_V1_STR.rstrip("/")
781780
path = posixpath.join(
782-
api_prefix,
783781
"plugin",
784782
"file",
785783
plugin_id.lower(),

0 commit comments

Comments
 (0)