December 2019
Intermediate to advanced
598 pages
12h 21m
English
In this section, we are going to change our frontend so that it makes requests to the correct backend APIs in staging and production. At the moment, both the REST API and SignalR API have hardcoded paths set to the localhost. We are going to make use of environment variables like we did in our backend to differentiate between the different environments. Let's open our frontend project in Visual Studio Code and carry out the following steps:
> npm install cross-env --save-dev
Read now
Unlock full access