UNPKG

@fal-ai/serverless-proxy

Version:

Deprecation note: this library has been deprecated in favor of @fal-ai/server-proxy

23 lines (22 loc) 772 B
import { type RequestHandler } from "@sveltejs/kit"; type RequestHandlerParams = { /** * The credentials to use for the request. Usually comes from `$env/static/private` */ credentials?: string | undefined; }; /** * Creates the SvelteKit request handler for the fal.ai client proxy on App Router apps. * The passed credentials will be used to authenticate the request, if not provided the * environment variable `FAL_KEY` will be used. * * @param params the request handler parameters. * @returns the SvelteKit request handler. */ export declare const createRequestHandler: ({ credentials, }?: RequestHandlerParams) => { requestHandler: RequestHandler; GET: RequestHandler; POST: RequestHandler; PUT: RequestHandler; }; export {};