Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias StaticBuildOptions

    the static option of a plugin that publishes the static tier at build time

    type StaticBuildOptions = {
        policy?: Record<string, string>;
        spool?: Spool | ((context: StaticBuildContext) => Spool | Promise<Spool>);
        url?: string | URL;
    }
    Index
    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.

    spool?: Spool | ((context: StaticBuildContext) => Spool | Promise<Spool>)

    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.

    url?: string | URL

    the origin the seed functions of the datasets receive; default http://localhost/