Skip to content

Commit 8b51448

Browse files
authored
fix cloudflare routes (#8618)
1 parent c9d2711 commit 8b51448

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/adapter-cloudflare/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ function get_routes_json(builder, assets) {
7373
*/
7474
const exclude = [
7575
`/${builder.config.kit.appDir}/*`,
76-
...assets.filter((file) => !file.startsWith(`${builder.config.kit.appDir}/`))
76+
...assets
77+
.filter((file) => !file.startsWith(`${builder.config.kit.appDir}/`))
78+
.map((file) => `/${file}`)
7779
];
7880

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

0 commit comments

Comments
 (0)