DEV Community

Discussion on: How to change the baseUrl via command line with Cypress

Collapse
 
sheenavanpunk profile image
SheenaVanPunk

Maybe this helps someone:
changing the mailHogUrl parameter with using --config flag doesn't work if you are using the cypress-mailhog package.
But it works if you set the mailHogUrl as an Environment variable 🎉 Then in the npm script we can call it with using --env flag:
--env mailHogUrl=your-custom-mailhog-url

Collapse
 
walmyrlimaesilv profile image
Walmyr

That's a great tip! Thanks for sharing, @sheenavanpunk .