Use DotEnv to Configure Environment variables
This article is part of the Robots Mall series
Our project will run in two environments: one is the local development environment, the other is the online production environment.
Because the progress of front-end development and back-end development is not exactly the same, when we are developing the front-end project, the back-end colleagues may not be able to provide an online API. At this time, we must make a mock API ourselves to complete the development of the project. In this project, we use the json-server
to create an…