Make sure to generate the static files and serve those, usually a command like npm run build
npm run build
Hello @Micah , how can the 'build/dist' files be served in production ? Any idea ?
Since they are static, they can be copied into the document root for your nginx server.
We have many application services running and dependent, so instead of keeping in root folder, we have made a separate folder for frontend, and trying to serve the build files from that directory by typing following command after finishing the build part.
nohup npm run serve &
"build": "webpack --mode production --config webpack.prod.js",
"serv": "webpack-dev-server --mode production --config webpack.prod.js -host dev-test.cc --port 65001"
HERE: serve in the package.json is the script property, i want to ask you question what command should be in this serve line. I have above type of command but it is not helping me in the serve process.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.