property ReactRouterPluginOptions.publicFiles
Since 0.2.0

Also serves files from the client-build ROOT — where Vite copies public/ (robots.txt, favicon.ico, …) — in addition to ReactRouterPluginOptions.assetUrlPrefix, with Cache-Control: public, max-age=0, must-revalidate: root files are not content-hashed, so they must be revalidated rather than cached immutably. A request matching neither the root nor the prefix still falls through to the SSR catch-all.

Default true. false preserves prefix-only serving exactly as before.

Type

boolean

Usage

import { type ReactRouterPluginOptions } from "react-router-plugin/src/index.ts";