Skip to content
Init is coming / May 19 - 23
Back

How to reduce repository size ? (function deployment max size is 28.61 MBs)

  • 0
  • Functions
Alexandre
15 Mar, 2024, 13:24

Hi there, what could be the best way to reduce the size of repository for a function deployment ? I'm trying to deploy a repository with a size around 74MB's. Facing the following build error on appwrite console:

TypeScript
Repository directory size should be less than 28.61 MBs.
TL;DR
Developers need to reduce a repository size for function deployment due to a build error indicating a limit of 28.61 MBs. Suggestions include hosting assets externally and pulling them when the function starts. Compressing source files and minimizing attachments like additional Python scripts, JSON, and text files may help reduce repository size.
Binyamin
15 Mar, 2024, 13:34

What langague ?

Alexandre
15 Mar, 2024, 13:34

Python

Binyamin
15 Mar, 2024, 13:35

Mm, It will be hard to find a way around it.

Binyamin
15 Mar, 2024, 13:36

From what I see you'll need to reduce the size on your side

Alexandre
15 Mar, 2024, 13:41

Like compressing source files ?

Binyamin
15 Mar, 2024, 13:41

Is your code weight 74MB or it's attached assets?

Alexandre
15 Mar, 2024, 13:48

The main.py is just 16.5kB, but I have many files attached. Among them more python scripts, json, txt...

Binyamin
15 Mar, 2024, 13:53

What I would suggest it to host the assets file in some bucket, and you can pull them when your function starts

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