Skip to content

Commit

Permalink
chore(templates): Update CF Pages template to include new routes spec
Browse files Browse the repository at this point in the history
_routes.json is a new optional file from Cloudflare Pages. It describes how [Pages Functions](https://developers.cloudflare.com/pages/platform/functions/) are routed through the Cloudflare Workers runtime. Via inclusion and exclusion rules, we route traffic to your Pages Functions or to static assets.
  • Loading branch information
jrf0110 committed Aug 23, 2022
1 parent f4d6ff6 commit ea5582b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/cloudflare-pages/package.json
Expand Up @@ -25,7 +25,7 @@
"eslint": "^8.20.0",
"npm-run-all": "^4.1.5",
"typescript": "^4.7.4",
"wrangler": "^2.0.22"
"wrangler": "^2.0.27"
},
"engines": {
"node": ">=14"
Expand Down
5 changes: 5 additions & 0 deletions templates/cloudflare-pages/public/_routes.json
@@ -0,0 +1,5 @@
{
"version": 1,
"include": ["/*"],
"exclude": ["/build/*"]
}

0 comments on commit ea5582b

Please sign in to comment.