Fixes https://github.com/vercel/next.js/issues/12046 Fixes https://github.com/vercel/next.js/issues/11992 Closes https://github.com/vercel/next.js/pull/13456