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

cloudflarePagesAdapter

export declare function cloudflarePagesAdapter(
  opts?: CloudflarePagesAdapterOptions,
): any;

Parameter

Type

Description

opts

CloudflarePagesAdapterOptions

(Optional)

any

Edit this section

CloudflarePagesAdapterOptions

export interface CloudflarePagesAdapterOptions extends ServerAdapterOptions

Extends: ServerAdapterOptions

Property

Modifiers

Type

Description

functionRoutes?

boolean

(Optional) Determines if the build should generate the function invocation routes _routes.json file.

https://developers.cloudflare.com/pages/platform/functions/routing/\#functions-invocation-routes

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.

Edit this section