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

How Cloudflare pages counts total assets?

I’m getting Exceeded 20k asset limit error on Cloudflare pages.
Using Next.js. It generated the pages by SSG only. The total number of pages is 11708.

But the error message is saying Total assets: 23453

How does it count?

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

It’s simply counting the number of files in your output directory, such as dist. This will include any images, JS, CSS, etc.

2 Likes

Thank you for your prompt reply!!

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