Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Stop warning users that crons don't match paths when they actually do #10074

Merged
merged 2 commits into from
Jun 1, 2023
Merged
Changes from 1 commit
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
Next Next commit
fix: stop warning about friendly crons
  • Loading branch information
commit 8f1d2ebec99f1039db7f4c9501ce26c59d7a24fb
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