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

    Type Alias PublishStaticOptions

    what publishStatic takes beside the sink

    type PublishStaticOptions = {
        fallbackPolicy?: Record<string, string>;
        policy?: Record<string, string>;
        url?: URL;
        verifyCore?: boolean | typeof fetch;
    }
    Index
    fallbackPolicy?: Record<string, string>

    the stub's site policy when the call, the option and a learned page give none

    policy?: Record<string, string>

    the stub's site policy for this call, ahead of the policy option and a learned page; {} names no headers

    url?: URL

    builds the pack at the store cursor first, as publish(url) does; ignored without bundles

    verifyCore?: boolean | typeof fetch

    With cdn.worker, reads the core's URL before anything is written and throws unless its bytes are this build's core. true uses the global fetch; pass a function to supply the read. Off by default, so a publish makes no request of its own.