azure-functions-rs
azure-functions-rs copied to clipboard
Cannot include arbitrary files in the Function
trafficstars
There may be a pattern for including static files, but I'm not finding one :frowning_face:
Steps to reproduce
- Create a simple function (http binding) and then add
some.jsonto the root. cargo func run(or run via Docker)- Note that the script root doesn't have the file inside of it, and any code in the funciton which tries to load the file obviously fails
Expected behavior
- Static files synced into the root
I'm thinking of this for including big ugly configuration files, where application settings don't make sense. I don't necessarily need to serve static files from the function (but that could be interesting), rather I just need internal files to be available in the sync-root
Thanks for opening this! I agree there should be some mechanism to easily copy files into the generated script root, which doesn't currently exist.