You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drops official support for Cloudflare Pages in favor of Cloudflare Workers
6
+
7
+
The Astro Cloudflare adapter now only supports deployment to Cloudflare Workers by default in order to comply with Cloudflare's recommendations for new projects. If you are currently deploying to Cloudflare Pages, consider [migrating to Workers by following the Cloudflare guide](https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/) for an optimal experience and full feature support.
/** Configuration for `_routes.json` generation. A _routes.json file controls when your Function is invoked. This file will include three different properties:
28
-
*
29
-
* - version: Defines the version of the schema. Currently there is only one version of the schema (version 1), however, we may add more in the future and aim to be backwards compatible.
30
-
* - include: Defines routes that will be invoked by Functions. Accepts wildcard behavior.
31
-
* - exclude: Defines routes that will not be invoked by Functions. Accepts wildcard behavior. `exclude` always take priority over `include`.
32
-
*
33
-
* Wildcards match any number of path segments (slashes). For example, `/users/*` will match everything after the `/users/` path.
34
-
*
35
-
*/
36
-
routes?: {
37
-
/** Extend `_routes.json` */
38
-
extend: {
39
-
/** Paths which should be routed to the SSR function */
40
-
include?: {
41
-
/** Generally this is in pathname format, but does support wildcards, e.g. `/users`, `/products/*` */
42
-
pattern: string;
43
-
}[];
44
-
/** Paths which should be routed as static assets */
45
-
exclude?: {
46
-
/** Generally this is in pathname format, but does support wildcards, e.g. `/static`, `/assets/*`, `/images/avatar.jpg` */
47
-
pattern: string;
48
-
}[];
49
-
};
50
-
};
51
-
52
27
/**
53
28
* By default, Astro will be configured to use Cloudflare KV to store session data. The KV namespace
54
29
* will be automatically provisioned when you deploy.
0 commit comments