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
- Function permissions
In my app I have a CreateUser flow which makes several documents and at the end uses the functions.createExecution() to call a server-side function to create a ...
- The file size is either not valid or exc...
Hello, I am receiving the following error when I am trying to deploy a function from my local. ``` > appwrite push functions --function-id xxxxxxxxx ℹ Info: Va...
- How does sending email from the Appwrite...
I noticed that the pricing page mentions “Messages – 1000 per month” for the Free plan. Is this different from sending emails? When I try to send an email usin...