menu
Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Feedback
view-forward
# Guides
view-forward
# I Made This
view-forward
Team

How to deploy to Azure with environment variables?

August 31, 2019 at 5:18pm

How to deploy to Azure with environment variables?

August 31, 2019 at 5:18pm

September 1, 2019 at 12:37am
Hey Eric, we're working on getting some deployment guides up. In the meantime this tutorial might be helpful: https://css-tricks.com/deploying-a-client-side-rendered-create-react-app-to-microsoft-azure/
Deployment with Azure will likely be simpler if all requests are served by server.js, rather than have a separate server and client. To do that you'd add the following line (as described in more detail in the above guide):
app.get('*', (req, res) => {
res.sendFile(path.resolve(__dirname, 'client', 'build', 'index.html'));
});
Edited
  • reply
  • like