I'm using Azure functions with GitHub deployment. I would like to place the function in src/server/functionName/
within the repo, but the deployment works only if the function is placed directly in functionName/
How do I deploy functions that are placed in subdirectories?
The documentation states
your host.json file and function folders should be directly at the root of what you deploy.
but "should" doesn't mean "must", right?
What I tried:
- Various combinations of locations of host.json and function.json
- In
host.json
I setroutePrefix
but it seems to affect only the function's URL:"http": { "routePrefix": "src/server" },
routePrefix
setting doesn't refer to file paths, it refers to http routes. You only use that if you want to customize/change the default /api route. – mathewc