fix(examples): resolve web-cordis distIndex from a cwd with spaces

This commit is contained in:
Yif
2026-07-30 21:18:50 +08:00
parent aaf8fd07e0
commit 7a7631d766

View File

@@ -12,7 +12,10 @@
config:
host: 127.0.0.1
port: 3081
distIndex: !!js "new URL('./apps/web/dist/index.html', 'file://' + process.cwd() + '/').pathname"
# Plain concatenation, not URL.pathname: a cwd with spaces
# percent-encodes through the URL round-trip and the encoded
# path never resolves.
distIndex: !!js "process.cwd() + '/apps/web/dist/index.html'"
- insert:
- id: tool-cordis
name: '@deepseek-ai/dsh-tool-cordis'