-
Notifications
You must be signed in to change notification settings - Fork 434
fix(functions): fixes an issue where the functions could not be served #3863
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 ecfc91f Package size: 356 MB(no change) Legend
|
eduardoboucas
left a comment
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.
If I understand correctly, this is doing the same check twice: once in the registry when creating the NetlifyFunction instance, and again in the constructor of NetlifyFunction. Is that necessary?
|
@eduardoboucas yes you are absolutely right this wasn't the most elegant approach π β I think I had to less coffee this morning (already updated) |
eduardoboucas
left a comment
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.
LGTM!
|
@eduardoboucas seems that some tests are failing need to investigate further maybe I broke something with the change |
|
|
||
| async scan(directories) { | ||
| async scan(relativeDirs) { | ||
| const directories = relativeDirs.filter(Boolean).map((dir) => (isAbsolute(dir) ? dir : join(this.projectRoot, dir))) |
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.
@erezrokah @ehmicky I think this is the fastet way to fix it -> Wondering if we can fix it on the long term inside the netlify config.
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.
Yes, this should be addressed by netlify/build#3620.
π Thanks for submitting a pull request! π
Summary
Fixes #3854
For us to review and ship your PR efficiently, please perform the following steps:
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)
