@ckirg/corelib-cloud - v0.4.1
    Preparing search index...

    Type Alias AppEnv

    Environment configuration and variables for the Hono instance.

    type AppEnv = {
        Bindings: {
            CORELIB_API_TOKEN?: string;
            CORELIB_TURSO_TOKEN: string;
            CORELIB_TURSO_URL: string;
            PLATFORM: string;
        };
        Variables: { logger: StrictLogger; rid: number };
    }
    Index
    Bindings: {
        CORELIB_API_TOKEN?: string;
        CORELIB_TURSO_TOKEN: string;
        CORELIB_TURSO_URL: string;
        PLATFORM: string;
    }

    Environment bindings (secrets, keys, config).

    Type Declaration

    • OptionalCORELIB_API_TOKEN?: string

      Bearer token required on every /api/v1 route except health. Unset denies all requests.

    • CORELIB_TURSO_TOKEN: string

      Auth token for the Turso/LibSQL database.

    • CORELIB_TURSO_URL: string

      URL for the Turso/LibSQL database.

    • PLATFORM: string

      Platform identifier (e.g., 'cloudflare', 'aws-lambda').

    Variables: { logger: StrictLogger; rid: number }

    Variables injected into the Hono context.

    Type Declaration

    • logger: StrictLogger

      Injected StrictLogger instance.

    • rid: number

      Flight-recorder request id, minted per request by the root middleware.