
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
- ENV vars not updating
When i do `nano .env` it shows `_APP_DOMAIN_TARGET=` as set to my domain, but when i do `docker compose exec appwrite vars` it shows `_APP_DOMAIN_TARGET=` as ...
- Index with the requested key already exi...
I'm using appwrite cli to create DB and I'm getting index_already_exists Is there a way to undestand the index name and maybe to skip if it's already exits?
- Issue - Migration From Cloud > Self Host...
Hi team, Iโm trying to migrate a few of my Appwrite projects from the cloud to a self-hosted instance. These projects are currently in โarchive modeโ due to th...
