I’m currently using netlify-plugin-contextual-env to set different env values depending on the context I.E. Deploy Preview. Another build plugin i’m using is netlify-plugin-cypress. For this to run successfully I need the cypress plugin to have the updated env variable value but it is still picking up the original value.
I’ve tried creating two custom plugins locally, the first one sets an environment variable and the second tries to read it. The behaviour i’m seeing is that the first plugin sets it successfully and I can console log out the value in both the preBuild and postBuild of the first plugin. However where ever I log it out in the second plugin it is undefined.
Is this an expected behaviour? I have previously had this working but as of last week this started failing.
Here is an example repo: https://github.com/alexjfno1/plugin-test