I think I've figured out what's helping our next on pages worker bundle go over 25MiB. We have 1256

I think I've figured out what's helping our next on pages worker bundle go over 25MiB.
We have 1256 static pages and 24 edge function routes.
The static routes are all output to a prerender-manifest.json (this is normal NextJS behaviour).

The next-on-pages deploy process copies the contents of this file into each edge function js file as a __PRERENDER_MANIFEST variable.
Our prerender-manifest.json comes in at 781KiB, so for me we've got it duplicated 24 times and in theory only need 1 copy of this in the final worker that's generated.

Has anyone else come across this before I raise it as a bug/improvement on GitHub?
Was this page helpful?