I have a script tag that has to be active in production but can't be called when Cypress is running. As we run Cypress against our prod build as well, I can't use process.env.NODE_ENV to exclude it.
Is there any way to exclude a piece of code when Cypress is running?