Nodejs implements the corresponding js/css/img path for production or development environment references

how does nodejs implement if the path referenced by the development environment is dist/css/xx.css

        build/css/xx.css

the project uses ejs templates and express frameworks
how should such requirements be implemented? thank you

Mar.31,2021

there is something called environment variable.
the most direct way is to change the path referencing css to process.env.CSS_PATH +'/ css/xx.css'

.

then use CSS_PATH=dist npm start to launch
use CSS_PATH=build npm start to launch

when the production environment is executing.
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-1e47d41-4399e.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-1e47d41-4399e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?