datatlas-erasme / datatlas

🌍 Create and share shiny maps of your territory ✨
https://dev-datatlas.datagora.erasme.org
GNU General Public License v3.0
1 stars 0 forks source link

Put cypress baseurl dynamically #80

Open racine-p-a opened 1 year ago

racine-p-a commented 1 year ago

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

racine-p-a commented 1 year ago

https://docs.cypress.io/guides/guides/environment-variables

lutangar commented 1 year ago

https://nx.dev/recipes/environment-variables/define-environment-variables