For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/configure/app/output/asset-prefix.md.
  • 简体中文
  • output.assetPrefix

    • 类型: string
    • 默认值: '/'

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

    Info

    该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - output.assetPrefix。