API β€Ί @builder.io/qwik-city/vite/cloudflare-pages

cloudflarePagesAdapter

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

Returns:

any

Edit this section

CloudflarePagesAdapterOptions

export interface CloudflarePagesAdapterOptions extends ServerAdapterOptions

Extends: ServerAdapterOptions

PropertyModifiersTypeDescription
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-routesDefaults 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