Skip to content

Add entrypoint for app-level code #537

Closed
@ejizba

Description

@ejizba

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions