Open racine-p-a opened 1 year ago
In cypress.config.js https://github.com/datatlas-erasme/datatlas/blob/bb06f8b615e18e14319142c982bbf7d00567ea64/apps/backend/cypress.config.js
cypress.config.js
-> baseUrl: 'http://localhost:3333' works but won't update if port is modified
baseUrl: 'http://localhost:3333'
-> baseUrl: 'http://localhost:'+process.env.PORT does not work, I will investigate later
baseUrl: 'http://localhost:'+process.env.PORT
https://docs.cypress.io/guides/guides/environment-variables
https://nx.dev/recipes/environment-variables/define-environment-variables
In
cypress.config.js
https://github.com/datatlas-erasme/datatlas/blob/bb06f8b615e18e14319142c982bbf7d00567ea64/apps/backend/cypress.config.js->
baseUrl: 'http://localhost:3333'
works but won't update if port is modified->
baseUrl: 'http://localhost:'+process.env.PORT
does not work, I will investigate later