-
Notifications
You must be signed in to change notification settings - Fork 365
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: functions:serve
should serve V2 Functions
#6290
Conversation
Starting with Draft to see if there's any failing tests. |
const cleanPath = request.path.replace(/^\/.netlify\/(functions|builders)/, '') | ||
|
||
functionName = cleanPath.split('/').find(Boolean) | ||
const match = await functionsRegistry.getFunctionForURLPath( |
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.
This is the main functional change, all the rest is cleanup.
const blobsContext = await getBlobsContext({ | ||
debug: options.debug, | ||
projectRoot: command.workingDir, | ||
siteID: site.id ?? 'unknown-site-id', |
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.
This needs to be updated after #6299.
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.
done in 17cfcaf
Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
functions:serve
wasn't able to serve V2 Functions. This PR fixes that, and a couple of other things at the same time.Resolves https://linear.app/netlify/issue/COM-139/ntl-functionsserve-doesnt-support-v2-functions.