UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

12 lines (11 loc) 704 B
import { type FrameworkBkndConfig } from "bknd/adapter"; import type { NextApiRequest } from "next"; type NextjsEnv = NextApiRequest["env"]; export type NextjsBkndConfig<Env = NextjsEnv> = FrameworkBkndConfig<Env> & { cleanRequest?: { searchParams?: string[]; }; }; export declare function getApp<Env = NextjsEnv>(config: NextjsBkndConfig<Env>, args?: Env): Promise<import("../..").App<import("../..").Connection<unknown>, import("../../core/types").PartialRec<import("../..").ModuleConfigs>, import("../../App").AppOptions>>; export declare function serve<Env = NextjsEnv>({ cleanRequest, ...config }?: NextjsBkndConfig<Env>, args?: Env): (req: Request) => Promise<Response>; export {};