Start Preview Server
Start the Next.js development server for local preview.
Steps
Check if dependencies are installed:
[ -d "node_modules" ] || pnpm installCheck if port 3000 is available:
lsof -i :3000 | grep LISTENStart development server:
pnpm devReport the URL: http://localhost:3000
If Port 3000 is Busy
Suggest alternative:
pnpm dev -- -p 3001
Or kill existing process (with user confirmation):
kill $(lsof -t -i:3000)
pnpm dev
Docker Alternative
If Docker is preferred:
docker compose up
Server will be available at http://localhost:3000