
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
- Help - Bug with Let's Encrypt certificat...
I'm facing an issue with SSL certificate generation in Appwrite (v1.6.1) on my VPS. Here's the error from the logs: ```appwrite-worker-certificates | Cannot ren...
- Invalid document structure: Unknown attr...
Hey π Iβm running into a migration issue after upgrading Appwrite from v1.6.0 to v1.6.1. Whenever I try to start an Appwrite β Appwrite migration, either thro...
- 401 on image preview url
So Im trying to get an image preview out of a bucket. im using a nextjs api to provide file data to my frontend, including a preview url. from other posts I gat...
