Is it possilbe to have ts? filename in node js template function
huh?
I mean typescript file type?
like I want to convert this all js into typescript
I am using node js runtime cloud function
To run function using TypeScript, you have to select node runtime
Also you have to set the following npm install && npm build as build command
entry point -> dist/main.js
build command -> npm install && npm build
Or you can use bun, which support typescript out of the box. At the moment, only if you're self hosting your appwrite instance, cloud haven't bun available yet
I tried bun but so hassle in windows platform
but for cloud function you won't have problem 🤔 You can have linux subsystem in windows 10 and 11, if you want run bun for developing
[SOLVED] creating a cloud function using node js support typescript?
Recommended threads
- "Domain verification failed"
"Domain verification failed" I was install Appwrite in my VDS server. I using Coolify for install Appwrite. After install complete, i want add my domain, and i ...
- Appwrite Sites triggers builds for all p...
I connected my Appwrite Sites to my Git app on my self hosted Appwrite server, but even though I only connected it to main branch, it creates a build every sing...
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...