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
- Appwrite Python SDK Keeps returning the ...
So I have a couple services, one is a scheduling engine responsible for fetching data from a database and launching a containerized micro service to process tha...
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...
- functions domain error
I cannot set up the domain for function I’m trying to add the domain api.example.com I can only use Cloudflare as the DNS provider because my domain provider do...