I need to dynamically set the connection address of the server according to whether I am running dev or a built process, because I also need to set up a backup server and the like. It is very inconvenient to set up multiple places every time, but I don’t understand it. How to find out whether it is running dev or build, solved, thank you~~~
You can set the environment in npm script, and then you can judge as mentioned above