fix: emit file:// plugin URLs for dsh ESM loader on Windows

This commit is contained in:
2026-09-04 12:08:37 +08:00
parent 01218b2907
commit a14a8d9233
3 changed files with 9 additions and 7 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
# GYXX 智能工作台 —— dsh Web 组合补丁(模板)。
# 启动脚本会把 __PLUGIN_DIR__ / __PROJECT_ROOT__ 渲染为绝对路径后生成
# 启动脚本会把 __WORKBENCH_DIR__ / __PROJECT_ROOT__ 渲染为绝对路径后生成
# cordis.local.yml,再通过 `dsh web --patch workbench/cordis.local.yml` 加载。
# 不要直接手工使用本文件:dsh 要求插件路径为绝对路径。
# 不要直接手工使用本文件:dsh 要求插件路径为绝对路径Windows 上必须是 file:// URL
- insert:
- id: gyxx-workbench
name: '__PLUGIN_DIR__/plugin/gyxx-workbench.mjs'
name: '__WORKBENCH_DIR__/plugin/gyxx-workbench.mjs'
config:
# gyxx 控制台 HTTP APIgyxx console,默认 8765 端口)
consoleBaseUrl: 'http://127.0.0.1:8765'