@gracexuerwu The Asset Optimization was removed, see:
So it’s unlikely to be the cause of the issue you’re experiencing.
If you’re working with something that produces static output, (and not something that heavily leans on middleware), you could try running your Build command on your local machine (not your develop command), and then check the output by serving it with npx serve
.
If you see the difference there, then it would indicate it’s being introduced by configuration differences between develop/build.