Skip to content

Commit

Permalink
fix: Stop warning users that crons don't match paths when they actual…
Browse files Browse the repository at this point in the history
…ly do (#10074)

* fix: stop warning about friendly crons

* changeset
  • Loading branch information
1 parent 1854f0d commit d3cb91c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-balloons-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-vercel': patch
---

fix: stop incorrectly warning users that crons don't match paths
8 changes: 2 additions & 6 deletions packages/adapter-vercel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,9 @@ function validate_vercel_json(builder, vercel_config) {
continue;
}

for (const route of valid_routes) {
if (route.pattern.test(path)) {
continue;
}
if (!valid_routes.some((route) => route.pattern.test(path))) {
unmatched_paths.push(path);
}

unmatched_paths.push(path);
}

if (unmatched_paths.length) {
Expand Down

0 comments on commit d3cb91c

Please sign in to comment.