I noticed a lot of the premade function templates only have python and PHP runtimes which is quite different from the claims of the template ReadME which shows theses function have a NodeJS runtime https://github.com/appwrite/templates
The runtimes shown in the dropdown list depend on the runtimes you have enabled on your Appwrite instance.
If you go here: https://appwrite.io/docs/environment-variables#functions
And look for the _APP_FUNCTIONS_RUNTIMES variable, you will see all the possible runtimes you can have. There's a chance that you haven't enabled the required runtime in your .env file.
According to the README of the function here, you can see that it runs on Node.js 18. So go into your .env file (located at appwrite/.env) and add node-18.0 to the _APP_FUNCTIONS_RUNTIMES variable.
This should fix your issue
legend <:appwriterocket:823996226894692403>
Let me know if there's any issues, otherwise I'll mark this as solved 😄
Solved
Please add [SOLVED] to the beginning of the title.
[SOLVED] Sync with Algolia Function Missing NodeJS Runtime
Recommended threads
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...
- I have try to use the appwrite in to the...
Invalid Origin. Register your new client (oailedjdbkhlkakmnnapoonllbnfmfij) as a new Web (Chrome Extension) platform on your project console dashboard