API โ€บ @qwik.dev/qwik-city/vite/vercel

vercelEdgeAdapter

export declare function vercelEdgeAdapter(opts?: VercelEdgeAdapterOptions): any;

Parameter

Type

Description

opts

VercelEdgeAdapterOptions

(Optional)

any

Edit this section

VercelEdgeAdapterOptions

export interface VercelEdgeAdapterOptions extends ServerAdapterOptions

Extends: ServerAdapterOptions

Property

Modifiers

Type

Description

outputConfig?

boolean

(Optional) Determines if the build should auto-generate the .vercel/output/config.json config.

Defaults to true.

staticPaths?

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.

target?

'webworker' | 'node'

(Optional) Define the target property in the ssr object in the vite.config.ts file.

Defaults to webworker.

vcConfigEntryPoint?

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.

vcConfigEnvVarsInUse?

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.

Edit this section