> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.

# output.assetPrefix

- **类型：** `string`
- **默认值：** `'/'`

在生产环境使用 CDN 部署时，可使用该选项设置静态资源的 URL 前缀。


:::info
该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 [Rsbuild - output.assetPrefix](https://v2.rsbuild.dev/zh/config/output/asset-prefix)。
:::