This content originally appeared on DEV Community and was authored by Vikas Singh
Go to the directory where there is package.json file. Run these commands
1.Clear old build.
rm -rf .next out build dist
npm run build
Restart server.
pm2 restart your-app-name(seglko)
This content originally appeared on DEV Community and was authored by Vikas Singh