Build the project
npm run build
.next/
Upload the files
- .next/ - public/ - node_modules/ - package.json - package-lock.json - next.config.ts
Start the server
npm run start
PORT=8080 npm run start
Use PM2
# Install PM2 npm install -g pm2 # Start your site pm2 start npm --name "latch" -- start # Auto-restart on server reboot pm2 startup pm2 save # View logs pm2 logs latch # Restart pm2 restart latch