bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
13 lines (12 loc) • 678 B
TypeScript
import { type DevServerOptions } from "@hono/vite-dev-server";
import { type RuntimeBkndConfig } from "bknd/adapter";
import type { MiddlewareHandler } from "hono";
export type ViteEnv = NodeJS.ProcessEnv;
export type ViteBkndConfig<Env = ViteEnv> = RuntimeBkndConfig<Env> & {
serveStatic?: false | MiddlewareHandler;
};
export declare function addViteScript(html: string, addBkndContext?: boolean): string;
export declare function serve<ViteEnv>(config?: ViteBkndConfig<ViteEnv>, args?: ViteEnv): {
fetch(request: Request, env: any, ctx: ExecutionContext): Promise<Response>;
};
export declare function devServer(options: DevServerOptions): import("vite").Plugin<any>;