
Hey -- trying to include JSON files in my function path, it bundles them with it (basd on the size) but trying to actually reference them is near impossible. ./myjsonfiles_directory
doesn't work, neither does path.resolve nor path.dirname() lmao, what should I be using here?

Python?

JavaScript actually, Node or Bun both

I ended up importing the files directly via import some file from “some file.json” { assert type: string }

ya that's probably the best way to go

otherwise, you can do some path magic stuff like how some of our templates looks up a static folder: https://github.com/appwrite/templates/blob/d8fa2bb59acdd867c7fa633fe95f703531e13d69/node/censor-with-redact/src/utils.js#L23-L25

gotcha thank you!!

how versatile

are the build commands

can I customize the image a lot more (like for instance install Poetry) if I add build commands?

maybe best in a separate thread
Recommended threads
- Flutter Starter Configuration Not Up to ...
I was trying to use Appwrite and connect Flutter, while using the starter kit from GitHub, as advised (please compare with attached screenshot). However, the s...
- Redis in Appwrite has high latency spike...
Hello, We are running a self-hosted Appwrite 1.5.10 on Debian 12 Bookworm (Docker Compose). Redis is used exclusively as part of the Appwrite stack (Pub/Sub, q...
- incrementDocumentAttribute throwing "Rou...
Hi, I’m running into an issue when trying to increment a numeric field using the Node.js SDK. My environment: Appwrite: self-hosted, version 1.7.4 node-appwrit...
