-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add entrypoint for app-level code #537
Labels
Milestone
Comments
With the change on the Function Host, will there be some more data provided to the workers when they start up, info that can be used to find the |
Yes that is the point of the change on the host and it will also help with #531, if that's what you're after 😝 |
|
This was referenced Apr 5, 2022
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UPDATE: Per the final design, you can specify a single file or a glob pattern for multiple files as the "main" field in your "package.json" file.
Basically, provide a way for users to run app-level code when the worker is initialized. This would be directly beneficial for the new hooks feature (#522), but could realistically be used for any arbitrary code. Current proposal is to respect the main field in a user's package.json
NOTE: I already added the function app dir to the worker init request in Azure/azure-functions-host#8144, necessary to read the user's package.json
The text was updated successfully, but these errors were encountered: