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
- Invalid document structure: Unknown attr...
Environment: Dart version: 3.5.1 dart_appwrite: 13.0.0 I’ve already created the database structure using a Dart function. I can create data records using cloud...
- open runtime version lacks behind
open runtime version in appwrite CLI is v4 while the hosted runtimes use v5, this mismatch does not permit to debug locally functions using recent runtimes (li...
- The /storage web page is not working in ...
The /storage web page is not working in Appwrite. Server : FRA