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
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...