From 2aeac71313a8d0b09bdea84cc1ca4916e32db8b9 Mon Sep 17 00:00:00 2001 From: Parteek Singh Date: Wed, 22 Jul 2026 17:21:47 -0700 Subject: [PATCH] docs: document Vite CDN --base inject in build configuration Co-authored-by: Cursor --- docs/src/web/content/reference/cli/build-configuration.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/web/content/reference/cli/build-configuration.mdx b/docs/src/web/content/reference/cli/build-configuration.mdx index 779bdb45f..d5bbeb3db 100644 --- a/docs/src/web/content/reference/cli/build-configuration.mdx +++ b/docs/src/web/content/reference/cli/build-configuration.mdx @@ -221,6 +221,8 @@ export default defineConfig({ }); ``` +On cloud deploy, Agentuity uploads hashed Vite assets to the CDN. The Vite adapter injects `--base=/` into the segment of your build command that runs `vite` when a deployment id or `AGENTUITY_CDN_ORIGIN` is available, so chunk URLs point at the CDN instead of the app origin. Local builds and `agentuity deploy --pack-only` skip this when no CDN origin can be resolved. If the build command does not invoke `vite`, the CLI cannot inject `--base` and asset URLs may stay on the app origin. + Values exposed through Vite public prefixes are bundled into frontend code. Do not put secrets or API keys in public variables.