change port for next-js
vi package.json
"scripts": {
"dev": "next
-p 8020",
"nuxt": "next",
"build": "next build",
"start": "next start -p 8020",
{
"scripts": {
"dev": "nuxt",
"nuxt": "nuxt",
"build": "nuxt build",
"start": "nuxt start -p 8020",
"generate": "nuxt generate",
"build:local": "cross-env-shell APP_ENV=local nuxt build",
"build:dev": "cross-env-shell APP_ENV=dev nuxt build",
"build:prod": "cross-env-shell APP_ENV=prod nuxt build",
"deploy:local": "yarn build:local && pm2 startOrRestart pm2.local.config.js --env local",
"deploy:dev": "yarn build:dev && pm2 startOrRestart pm2.dev.config.js --env dev",
"deploy:prod": "yarn build:prod && pm2 startOrRestart pm2.production.config.js --env prod",
}
}
Comments
Post a Comment