peercoin / wrapmeister-ui

https://bridge.peercoin.net
BSD 3-Clause "New" or "Revised" License
2 stars 7 forks source link

Better network handling #82

Closed SeverinDK closed 2 years ago

willyfromtheblock commented 2 years ago

Hi,

can you modify the switch in such a way that

process.env.NODE_ENV === "development" would point to

https://dev-wrapmeister.peercoin.net/

and

process.env.NODE_ENV === "production" would point to

https://wrapmeister.peercoin.net/

? That way all the cloudflare preview branches will always point to the dev-backend and prod will be prod.

willyfromtheblock commented 2 years ago

I can also provide custom env variables for dev/prod on CF pages if that helps

willyfromtheblock commented 2 years ago

This is the documentation btw: https://developers.cloudflare.com/pages/platform/build-configuration/#environment-variables

(So it doesn't get lost in development-bot chatter)