Production environment and development environment in vue

does the front end need to deploy the configuration of the production environment and the development environment when doing the vue project?

Jul.20,2021

needs
you can use process.env.NODE_ENV to distinguish


the most common thing to encounter is that the development environment comes with a built-in counter-generation, but the production environment of this thing is invalid and needs to be provided by external Server .

if you use vue-cli , the default is fine for basic simple projects.


of course, the interface address of the development environment is different from the production address

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb077a-4701b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb077a-4701b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?