import type { Adapter } from '@ruvyxa/core'; /** * Options for Vercel deployment. */ export interface VercelAdapterOptions { /** * Emit a Web-standard Edge Function instead of a Node.js serverless * function. Edge mode supports SSR, SSG, CSR, and API routes; ISR/PPR need * the writable Node cache and are rejected during build capability checks. * @default false */ edge?: boolean; /** * Put the routes that declared `export const runtime = 'edge'` in their own * Edge Function, beside the Node one that answers everything else. * * Off by default, and deliberately so: one function is simpler, and a route * on Node is always correct — every API an edge route may use exists there * too. Turn this on when a route's latency genuinely wants a point of * presence rather than a region. * * A route is eligible when it needs nothing the framework keeps in one place. * Server components and server actions are answered through * `/__ruvyxa/rsc`, `/__ruvyxa/flight`, and `/__ruvyxa/action` — single paths * owned by one function — and ISR and PPR need a writable store this edge * function has none of. A route that declares `edge` and needs any of them is * refused by name rather than silently left on Node, because being quietly * ignored is how a latency decision stops being true without anyone noticing. * @default false */ splitEdgeRoutes?: boolean; /** Custom functions output directory. Defaults to `${outDir}/functions`. */ functionsDir?: string; /** * Also emit the Build Output API directory at the project root * (`.vercel/output/`), which Vercel picks up automatically after * `ruvyxa build` runs — no dashboard output-directory configuration needed. * @default true */ projectOutput?: boolean; /** * Node.js runtime version for serverless functions. * @default 'nodejs24.x' */ runtime?: string; /** * Maximum execution duration in seconds for serverless functions. * @default 10 */ maxDuration?: number; /** * Vercel region codes the serverless function runs in, closest first * (for example `['sin1']` for Singapore). * * Static pages are served from the edge everywhere, but an SSR page, an API * route, or an ISR revalidation runs in the function region — `iad1` (US * East) unless the account or this option says otherwise, which adds a * cross-continent round trip for users far from it. Left unset, Vercel's own * default applies. */ regions?: string[]; } /** * Create a Vercel deployment adapter for Ruvyxa. * * Produces serverless functions and static assets compatible with Vercel's * Build Output API v3. Supports SSR, API routes, ISR, PPR, SSG, and CSR. * * @example * ```ts * import { config } from "ruvyxa/config" * import { vercel } from "@ruvyxa/adapter-vercel" * * export default config({ * adapter: vercel() * }) * ``` */ export declare function vercel(options?: VercelAdapterOptions): Adapter; export default vercel; //# sourceMappingURL=index.d.ts.map