Back

Dart functions build and using local/overridden packages

  • 0
  • Self Hosted
  • Functions
Rockafella
31 Mar, 2025, 16:20

Running Appwrite in Docker on WSL/Ubuntu. I've deployed Dart functions and they work just fine! πŸ‘ But I'm confused about the build process and using packages. When I look at the build process, there are three rounds of downloading packages and some seem to be downloaded three times. This is performed for every function that is deployed. How does that work? To make deployment more efficient and let functions use the same packages I thought it would be possible to override dependencies and add them. I can't get that to work. As I understand symlinks could be used, but I don't understand how these can be deployed. Where and how should I deploy packages stored in a separate folder? Within a container? Also, would this allow offline deployment of functions? Obviously pub get --offline isn't an option (like on the client side), but if all the required packages are cached and put in a common folder and then symlinked (is that a verb? πŸ˜… ) to, would that work? Thanks for any help.

TL;DR
Developers are running Appwrite in Docker on WSL/Ubuntu and successfully deploying Dart functions. They have questions about the build process and using packages efficiently, especially for multiple functions. They're seeking advice on overriding dependencies, deploying packages stored in separate folders, and enabling offline deployment of functions.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more