Skip to content

Commit

Permalink
fix cloudflare routes (#8618)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Jan 20, 2023
1 parent c9d2711 commit 8b51448
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/adapter-cloudflare/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ function get_routes_json(builder, assets) {
*/
const exclude = [
`/${builder.config.kit.appDir}/*`,
...assets.filter((file) => !file.startsWith(`${builder.config.kit.appDir}/`))
...assets
.filter((file) => !file.startsWith(`${builder.config.kit.appDir}/`))
.map((file) => `/${file}`)
];

const MAX_EXCLUSIONS = 99; // 100 minus existing `include` rules
Expand Down

0 comments on commit 8b51448

Please sign in to comment.