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) • 638 B
TypeScript
import { type FrameworkBkndConfig, type FrameworkOptions } 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, opts?: FrameworkOptions): Promise<import("../..").App>;
export declare function serve<Env = NextjsEnv>({ cleanRequest, ...config }?: NextjsBkndConfig<Env>, args?: Env, opts?: FrameworkOptions): (req: Request) => Promise<Response>;
export {};