vapor-chamber API reference - v1.16.0
    Preparing search index...

    Type Alias ResolveBaseOptions

    type ResolveBaseOptions = {
        url?: string;
        prefix?: string;
        locales?: readonly string[];
        pathname?: string;
    }
    Index
    url?: string

    Explicit base — wins outright, everything else ignored.

    prefix?: string

    Mount prefix, e.g. '/admin' (or '/backend', anything — never assumed). Omit for locale-first URLs where the pathname starts with the locale.

    locales?: readonly string[]

    Locale segments to detect after the prefix (or at the pathname start when there is no prefix). The segment is OPTIONAL — absent locale just yields the prefix alone.

    pathname?: string

    Pathname to inspect. Default: window.location.pathname.