In this PR I'm creating github environments for separate deployments between staging and production. This PR addresses an issue with the Coming Soon page where I had used the same API for both staging and production. We can now deploy each branch with the respective environment variable and separate APIs for our deployments.
Note: I had to fix a number of smaller issue with this deployment since we recently updates our backend infrastructure. I moved some of the data parsing logic into custom resolvers in gatsby-node.js, which I believe to be a better place for that logic.
In this PR I'm creating github environments for separate deployments between staging and production. This PR addresses an issue with the Coming Soon page where I had used the same API for both staging and production. We can now deploy each branch with the respective environment variable and separate APIs for our deployments.
Note: I had to fix a number of smaller issue with this deployment since we recently updates our backend infrastructure. I moved some of the data parsing logic into custom resolvers in gatsby-node.js, which I believe to be a better place for that logic.