API โบ @qwik.dev/qwik-city/vite/cloudflare-pages
cloudflarePagesAdapter
export declare function cloudflarePagesAdapter(
opts?: CloudflarePagesAdapterOptions,
): any;
Parameter
Type
Description
opts
(Optional)
any
CloudflarePagesAdapterOptions
export interface CloudflarePagesAdapterOptions extends ServerAdapterOptions
Extends: ServerAdapterOptions
Property
Modifiers
Type
Description
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
.
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.