How to start a production server for different frameworks?
The table below provides package.json
scripts required to start a production server for various frameworks.
Framework | Package.json scripts |
Next | "scripts": { "start": "next start", "build": "next build", } |
Nuxt | "scripts": { "start": "node .output/server/index.mjs", "build": "nuxt build", } |
React | "scripts": { "start": "react-scripts start", "build": "react-scripts build", } |
Angular | "scripts": { "ng": "ng", "start": "ng serve --port $PORT --host 0.0.0.0 --disable-host-check --open", "build": "ng build", } |
Vue | "scripts": { "start": "http-server vue-app/dist", "build": "vue-cli-service build --dest vue-app/dist" } |
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.