Deploying to Cloudflare pages

I’m finding that for everything I deploy I need to set YARN_ENABLE_IMMUTABLE_INSTALLS to false or the build won’t work because yarn is trying to do an update on something.