Beignet API reference
    Preparing search index...

    Interface DevtoolsRequestOptions

    Devtools route options shared by route handlers.

    interface DevtoolsRequestOptions {
        authorize?: DevtoolsAuthorize;
        basePath: string;
        enabled?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    authorize?: DevtoolsAuthorize

    Optional app-owned authorization check for exposed devtools routes.

    Returning false hides devtools with a 404. Returning a Response lets the app provide a custom denial response.

    basePath: string

    URL path prefix where devtools routes are mounted.

    "/api/devtools"
    
    enabled?: boolean

    Whether the devtools route should be exposed.

    process.env.NODE_ENV !== "production"