How do I deploy the DevTinder frontend?
The frontend can be deployed to Vercel (npm install -g vercel, then vercel in the frontend directory), Netlify, or the same EC2 instance. Set the VITE_API_URL environment variable to point to the backend domain (https://yourdomain.com/api).
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in Deploying DevTinder to Production AWS, Nginx, and PM2 Setup Guide
Launch an Ubuntu EC2 instance, install Node.js and PM2, clone the backend repo, configure .env, start with pm2 start, configure Nginx as a reverse proxy, and add SSL with Let's Encrypt. The frontend can be deployed to Vercel separately.
PM2 keeps the Node.js process running, automatically restarts on crash, starts on system boot with pm2 startup, and provides log management. Without PM2, the app would stop when the SSH session ends or on an unhandled error.
Nginx listens on port 80 (and 443 with SSL) and proxies requests to the Node.js app on port 3000. It handles SSL termination, static file serving, and WebSocket upgrades for Socket.io. The Upgrade and Connection headers are critical for WebSocket support.
Still have questions?
Browse all our FAQs or reach out to our support team
