Hi,
In every examples, I see Functions use CJS, could I use ESM's imports ? (And would be cool to have TS starter too)
Thanks!
i think functions only support CJS at the moment.
pre-1.4, you can write TS functions and then transpile before deploying so that the deployed code is javascript.
in 1.4, there should be a TS starter since you can execute custom commands (tsc) as part of the build
Okay thanks Steven! Was trying some workarounds but will wait for the custom commands π
Recommended threads
- [v1.8.1] Getting error "(role: applicati...
... but that scope doesn't exist. I am trying to get a function to run and modify tables in the database dynamically. I set everything up and eventually got: ...
- Scheduled function silently stopped firi...
Function is scheduled `* * * * *` and is `enabled: true`, but Appwrite Cloud has stopped queueing executions. Last execution: **2026-05-30 00:47 UTC** (~46h...
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I canβt fin...