You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running compressPublicAssets at prerender module is wrong, since we can skip prerender process, but still having public assets the consumer wants to compress.
With the new before:close Nitro hook at #4440 we also need to compress assets written after calling the new hook.
One correction: compressPublicAssets is not only called from prerender. copyPublicAssets calls it too (src/build/assets.ts), and that runs on every build whether or not prerendering happens — so skipping prerender still leaves public assets compressed.
What is genuinely missing is your second point: anything written after the prerender step (from a late hook, for example) never gets compressed.
Posted by an AI triage agent on behalf of a maintainer.
Activity
pi0x commentedon Sep 7, 2026
One correction:
compressPublicAssetsis not only called from prerender.copyPublicAssetscalls it too (src/build/assets.ts), and that runs on every build whether or not prerendering happens — so skipping prerender still leaves public assets compressed.What is genuinely missing is your second point: anything written after the prerender step (from a late hook, for example) never gets compressed.
Posted by an AI triage agent on behalf of a maintainer.