'How to make my Cypress project to use local proxy when running on pipeline on gitlab?

I am very new in Cypress and i do have an issue. So I wrote tests for a web app that is on stage environment and works only with proxy. When i run cypress locally everything works fine, but what if i want to run the tests on pipeline CI/CD(more precisely on GitLab, because I already configured my project there), any ideas on how can I make this work? Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source