# Install Vercel CLI
npm i -g vercel
# Login to Vercel
vercel login
# Deploy
vercel --prod# Build the project
npm run build
# Deploy to Netlify (drag & drop build folder to netlify.com)
# Or use Netlify CLI:
npm i -g netlify-cli
netlify deploy --prod --dir=out# Add to package.json scripts:
"export": "next export"
# Build and export
npm run build
npm run export
# Deploy the 'out' folder to GitHub PagesCreate .env.local (not committed to Git):
NEXT_PUBLIC_SITE_URL=https://citizenproject.app
NEXT_PUBLIC_API_URL=https://api.citizenproject.app
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export', // For static hosting
trailingSlash: true,
images: {
unoptimized: true
}
}
module.exports = nextConfig- Point
citizenproject.appto your hosting provider - Update DNS A records or CNAME
- Configure SSL certificate
# Install dependencies
npm install
# Build for production
npm run build
# Start production server (if not static)
npm start- A Record: @ -> [Your hosting IP]
- CNAME: www -> citizenproject.app
- SSL Certificate setup
- Go to Vercel Dashboard
- Project Settings > Domains
- Add
citizenproject.app - Follow DNS instructions
- Test all pages load correctly
- Verify navigation works
- Check file upload functionality
- Test responsive design
- Validate domain redirects
- Set up monitoring/analytics