Error: Exceeded 20k asset limit. Total assets: 30891

Hello, when I attempted to deploy a Cloudflare page (which is a forked Discourse/GitHub repo) I get “Error: Exceeded 20k asset limit. Total assets: 30891”! This occurs 1 second (basically instantaneously) after the build process begins!

The full log is below

12:25:23.069	Initializing build environment. This may take up to a few minutes to complete
12:27:22.900	Success: Finished initializing build environment
12:27:22.900	Cloning repository...
12:27:30.993	Success: Finished cloning repository files
12:27:31.278	No build command specified. Skipping build step.
12:27:31.278	Note: No functions dir at /functions found. Skipping.
12:27:31.278	Validating asset output directory
12:27:31.849	Error: Exceeded 20k asset limit. Total assets: 30891

If it helps, a screenshot is below containing my build information

image

Finally, the link to my repo is embedded below

Does anyone know how I can fix this? I’ll be waiting for a reply!

Delete 10,891 files from the repository to bring it within the limit. If you don’t need all of the 22k emojis you could delete public/images/emoji for a start.

But this is not going to work at all (unless you make a few changes :grin:)

3 Likes

Ok, I’ll do that (I can always add emojis back at a later date)!

I just did that and it successfully deployed! Now I just need to get it running on a server, then re-deploy it once I’ve done that!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.