Beignet API reference
    Preparing search index...

    Type Alias CreateStorageRouteOptions

    Options for serving public storage objects through a Next.js route.

    type CreateStorageRouteOptions = {
        basePath?: string;
        contentDisposition?:
            | "auto"
            | "inline"
            | "attachment"
            | ((args: { object: StorageObject; req: Request }) => string | undefined);
        headers?: HeadersInit | ((req: Request) => HeadersInit | undefined);
    }
    Index
    basePath?: string

    Public path prefix that maps to storage keys.

    "/storage"
    
    contentDisposition?:
        | "auto"
        | "inline"
        | "attachment"
        | ((args: { object: StorageObject; req: Request }) => string | undefined)

    Content-Disposition policy for public objects.

    "auto" serves active content types such as HTML, SVG, XML, and JavaScript as downloads while leaving other objects inline.

    "auto"
    
    headers?: HeadersInit | ((req: Request) => HeadersInit | undefined)

    Additional response headers for served objects.