Back to Qwik

@builder.io/qwik-city/vite/vercel API Reference

packages/docs/src/routes/api/qwik-city-vite-vercel/index.mdx

1.7.12.3 KB
Original Source

API › @builder.io/qwik-city/vite/vercel

<h2 id="verceledgeadapter">vercelEdgeAdapter</h2>
typescript
export declare function vercelEdgeAdapter(opts?: VercelEdgeAdapterOptions): any;
<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

opts

</td><td>

VercelEdgeAdapterOptions

</td><td>

(Optional)

</td></tr> </tbody></table>

Returns:

any

Edit this section

<h2 id="verceledgeadapteroptions">VercelEdgeAdapterOptions</h2>
typescript
export interface VercelEdgeAdapterOptions extends ServerAdapterOptions

Extends: ServerAdapterOptions

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

outputConfig?

</td><td> </td><td>

boolean

</td><td>

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

Defaults to true.

</td></tr> <tr><td>

staticPaths?

</td><td> </td><td>

string[]

</td><td>

(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.

</td></tr> <tr><td>

target?

</td><td> </td><td>

'webworker' | 'node'

</td><td>

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

Defaults to webworker.

</td></tr> <tr><td>

vcConfigEntryPoint?

</td><td> </td><td>

string

</td><td>

(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.

</td></tr> <tr><td>

vcConfigEnvVarsInUse?

</td><td> </td><td>

string[]

</td><td>

(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.

</td></tr> </tbody></table>

Edit this section