Type Alias StaticBuildOptions
type StaticBuildOptions = {
policy?: Record<string, string>;
spool?: Spool | ((context: StaticBuildContext) => Spool | Promise<Spool>);
url?: string | URL;
}
policy?: Record<string, string>;
spool?: Spool | ((context: StaticBuildContext) => Spool | Promise<Spool>);
url?: string | URL;
}
Properties
Optionalpolicy
policy?: Record<string, string>
The site's security headers the worker replays on pages it renders locally; {} says the site
sends none. Default: the policy option of the spool, the headers of a page it answered, then
the /* block of the _headers file in the public directory. With none of them the stub
names no policy, and a device makes one network view to learn it.
Optionalspool
The instance to publish from, or a function that makes it from the build output. Default: the
spool the plugin was given. A single-page app passes a function when its shell routes must
hold the built index.html, because the instance made at config time holds the dev one.
Optionalurl
url?: string | URL
the origin the seed functions of the datasets receive; default http://localhost/
the
staticoption of a plugin that publishes the static tier at build time