Seems netlify might be doing some behind the scenes magic with the build command - possibly extracting my attempt to set env var for the second command and applying it globally.
Possible fixes:
Try build script instead
Use a sandbox folder in public and add sandbox specific setting there
Seems netlify might be doing some behind the scenes magic with the build command - possibly extracting my attempt to set env var for the second command and applying it globally.
Possible fixes: