Amplify Toolbox
    Preparing search index...

    Options for the SPA adapter.

    type SpaAdapterOptions = {
        buildOutputDir?: string;
        spaFallback?: boolean;
    }
    Index

    Properties

    buildOutputDir?: string

    Explicit build output directory relative to project root. Overrides auto-detection.

    spaFallback?: boolean

    Routing model declared by the caller from the framework's build contract — NOT inferred from the filesystem.

    • true → single-page app (framework: 'spa'): extensionless paths fall back to /index.html for client-side routing.
    • false → multi-page static site (framework: 'static'): each route resolves to its own <path>/index.html (directory-index).

    Sourced by getAdapter from the framework string. When omitted, keeps the historical SPA behavior so callers that don't declare a model keep working. The L3 still applies its own fallback heuristic when the manifest omits spaFallback entirely; here we always set it because the framework is known.

    true