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
- Update from 1.8 to 1.8.1 failing
I have spent the past 2 hours trying to figure this out but I really dont know what to do. 1.8. was a fresh install because the upgrade from 1.7.4 was a total m...
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...
- Broken Appwrite can’t make functions nor...
Hii guys, I was having this issue with my locally hosted Appwrite, I can’t create functions ( both template and manual), I can’t make a custom domain ( like in ...