From 6f5787c24c934c3b7e7c0adba24e67478d3cc29f Mon Sep 17 00:00:00 2001 From: Sakana <15715093608@163.com> Date: Wed, 28 Oct 2026 11:54:42 +0800 Subject: [PATCH 1/2] docs(cli): correct static build deployment examples --- docs/content/1.guide/10.standalone-cli.md | 3 ++- docs/content/2.adapters/2.cac.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/content/1.guide/10.standalone-cli.md b/docs/content/1.guide/10.standalone-cli.md index 908f75d12..4309dbbe3 100644 --- a/docs/content/1.guide/10.standalone-cli.md +++ b/docs/content/1.guide/10.standalone-cli.md @@ -78,10 +78,11 @@ my-tool # dev server at http://localhost:777 my-tool --config ./my.config.mjs my-tool --port 8080 --no-open my-tool build --out-dir dist-static # self-contained static deploy -my-tool build --out-dir dist-static --base /tool/ # …under a custom base my-tool mcp # agent exposure ``` +For deployment under a path such as `/tool/`, build the SPA with relative asset paths (`vite.base: './'`). Serve `dist-static` at that path. + ## Nuxt SPA setup The Nuxt helper sets `app.baseURL: './'` / `vite.base: './'` and wires `connectDevframe()` into `$rpc` ([Nuxt docs](/frameworks/nuxt)). diff --git a/docs/content/2.adapters/2.cac.md b/docs/content/2.adapters/2.cac.md index 249c38bb3..64897b074 100644 --- a/docs/content/2.adapters/2.cac.md +++ b/docs/content/2.adapters/2.cac.md @@ -31,10 +31,11 @@ await createCac(myDevframe).parse() my-tool # dev server at http://localhost:9999/ my-tool --port 8080 my-tool build --out-dir dist-static -my-tool build --out-dir dist-static --base /my-tool/ my-tool mcp # stdio MCP server ``` +For deployment under a path such as `/my-tool/`, build the SPA with relative asset paths (`vite.base: './'`). Serve `dist-static` at that path. + The SPA serves at `/` standalone, `/__my-tool/` hosted ([Mount paths](/adapters/#mount-paths)). ## Options From edfa3e383b9c4a0e3167ba10c221ca50d16a8f1e Mon Sep 17 00:00:00 2001 From: Sakana <15715093608@163.com> Date: Thu, 29 Oct 2026 21:45:53 +0800 Subject: [PATCH 2/2] docs(cli): limit base flag correction to stale examples --- docs/content/1.guide/10.standalone-cli.md | 2 -- docs/content/2.adapters/2.cac.md | 2 -- 2 files changed, 4 deletions(-) diff --git a/docs/content/1.guide/10.standalone-cli.md b/docs/content/1.guide/10.standalone-cli.md index 4309dbbe3..1133dd052 100644 --- a/docs/content/1.guide/10.standalone-cli.md +++ b/docs/content/1.guide/10.standalone-cli.md @@ -81,8 +81,6 @@ my-tool build --out-dir dist-static # self-contained static deploy my-tool mcp # agent exposure ``` -For deployment under a path such as `/tool/`, build the SPA with relative asset paths (`vite.base: './'`). Serve `dist-static` at that path. - ## Nuxt SPA setup The Nuxt helper sets `app.baseURL: './'` / `vite.base: './'` and wires `connectDevframe()` into `$rpc` ([Nuxt docs](/frameworks/nuxt)). diff --git a/docs/content/2.adapters/2.cac.md b/docs/content/2.adapters/2.cac.md index 64897b074..ff5e21d96 100644 --- a/docs/content/2.adapters/2.cac.md +++ b/docs/content/2.adapters/2.cac.md @@ -34,8 +34,6 @@ my-tool build --out-dir dist-static my-tool mcp # stdio MCP server ``` -For deployment under a path such as `/my-tool/`, build the SPA with relative asset paths (`vite.base: './'`). Serve `dist-static` at that path. - The SPA serves at `/` standalone, `/__my-tool/` hosted ([Mount paths](/adapters/#mount-paths)). ## Options