Turbopack: only replace edge dynamic calls in dev (#84354)
This replacement should only happen in dev, it's really only to be able to have nicer error messages.
This previously failed the deployment tests.
Related: https://github.com/vercel/next.js/issues/40625
Closes PACK-5591