SSR / foldkit-ssr/vite

fileFor

function · packages/ssr/src/vite.ts:38

function fileFor(path: string, layout: 'directory' | 'flat'): string

The file a static host serves for a path. directory is the package's own layout (/about as about/index.html); flat writes about.html, for hosts with clean addresses and no directory indexes. generate refuses what is not servable (a query, a fragment, an unresolvable address) before this maps it, so this maps and never validates.