Handle hash change in all files for static env (#77058)
Continuation of https://github.com/vercel/next.js/pull/77038 this
ensures we replace hash changes in all assets so no stale hashes are
left present and we don't have to keep a static list to update. This
also ensures the server still treats the outputs as `compile` unless if
only env `generate` is run.
x-ref: [slack
thread](https://vercel.slack.com/archives/C07BVA6HM17/p1741840160742479?thread_ts=1741722738.816639&cid=C07BVA6HM17)