Skip to content

Commit d3cb91c

Browse files
fix: Stop warning users that crons don't match paths when they actually do (#10074)
* fix: stop warning about friendly crons * changeset
1 parent 1854f0d commit d3cb91c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.changeset/nervous-balloons-speak.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/adapter-vercel': patch
3+
---
4+
5+
fix: stop incorrectly warning users that crons don't match paths

packages/adapter-vercel/index.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,9 @@ function validate_vercel_json(builder, vercel_config) {
575575
continue;
576576
}
577577

578-
for (const route of valid_routes) {
579-
if (route.pattern.test(path)) {
580-
continue;
581-
}
578+
if (!valid_routes.some((route) => route.pattern.test(path))) {
579+
unmatched_paths.push(path);
582580
}
583-
584-
unmatched_paths.push(path);
585581
}
586582

587583
if (unmatched_paths.length) {

0 commit comments

Comments
 (0)