API โบ @builder.io/qwik-city/vite/vercel
vercelEdgeAdapter
export declare function vercelEdgeAdapter(opts?: VercelEdgeAdapterOptions): any;Parameter
Type
Description
opts
(Optional)
any
VercelEdgeAdapterOptions
export interface VercelEdgeAdapterOptions extends ServerAdapterOptionsExtends: ServerAdapterOptions
Property
Modifiers
Type
Description
boolean
(Optional) Determines if the build should auto-generate the .vercel/output/config.json config.
Defaults to true.
string[]
(Optional) Manually add pathnames that should be treated as static paths and not SSR. For example, when these pathnames are requested, their response should come from a static file, rather than a server-side rendered response.
'webworker' | 'node'
(Optional) Define the target property in the ssr object in the vite.config.ts file.
Defaults to webworker.
string
(Optional) The entrypoint property in the .vc-config.json file. Indicates the initial file where code will be executed for the Edge Function.
Defaults to entry.vercel-edge.js.
string[]
(Optional) The envVarsInUse property in the .vc-config.json file. List of environment variable names that will be available for the Edge Function to utilize.
Defaults to undefined.