There are some codes, like setting headers and other utils I want to share between functions. Having them in a utils
folder at the root of my project is not working, since only the function's path is deployed. Any ideas how I can reuse some utils?
you'll need to create a symlink in your function folder that points to the common code
for example, common is a symlink here: https://github.com/stnguyen90/places/tree/feature/1.3-upgrade/appwrite-functions/create-comment/src
at the end I went with a single folder for all functions and different entry points
Recommended threads
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Appwriter Linux Key Bindings
Any tips for configuring appwriter for ubuntu? Actually the keybindings are tightly binded to either windows or mac. Working well on windows but in ubuntu some ...
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...