Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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