API › @builder.io/qwik-city/vite/cloudflare-pages
cloudflarePagesAdapter
export declare function cloudflarePagesAdapter(
opts?: CloudflarePagesAdapterOptions
): any;| Parameter | Type | Description |
|---|---|---|
| opts | CloudflarePagesAdapterOptions | (Optional) |
Returns:
any
CloudflarePagesAdapterOptions
export interface CloudflarePagesAdapterOptions extends ServerAdapterOptionsExtends: 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-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. |