Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const browserify = require("@cypress/browserify-preprocessor");
module.exports = on => {
const options = browserify.defaultOptions;
options.browserifyOptions.transform[1][1].plugins.push([
"transform-define",
{
"process.env.API_URL": process.env.API_URL
}
]);
on("file:preprocessor", browserify(options));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.