-
Notifications
You must be signed in to change notification settings - Fork 433
feat: support ef excluded patterns #5366
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
Conversation
📊 Benchmark resultsComparing with b5efce8 Package size: 260 MB(no change) Legend
|
src/lib/edge-functions/registry.mjs
Outdated
| .filter(({ pattern }) => pattern.test(urlPath)) | ||
| .filter( | ||
| ({ function: name }) => | ||
| !manifest.function_config[name]?.excluded_patterns.some((pattern) => new RegExp(pattern).test(urlPath)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this a bit hard to read. Do you think we could create an intermediate variable here, like isExcludedPattern?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, done in 159c92c
Summary
Closes https://github.com/netlify/pillar-runtime/issues/615. This PR ships support for excluded patterns to the CLI.