For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /configure/app/performance/dns-prefetch.md.

performance.dnsPrefetch

  • Type: undefined | string[]

  • Default: undefined

Specifies that the user agent should preemptively perform DNS resolution for the target resource's origin, refer to dns-prefetch.

After this property is set, the domain name can be resolved before the resource is requested, reducing request latency and improving loading performance.

See Using dns-prefetch for more details.

Info

The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - performance.dnsPrefetch.