Running each component
The client requires a production build (
pnpm build then pnpm start) to serve static files. Use pnpm dev only during development, as it enables Next.js hot-reloading and is not suitable for production.Environment variables
Copy and configure the environment files before starting:- In
server/.env:CLIENT_URL=http://localhost:3000 - In
client/.env.local:NEXT_PUBLIC_SOCKET_URL=http://localhost:3001