-
Notifications
You must be signed in to change notification settings - Fork 0
vercel setup
This document provides an overview of the Vercel deployment infrastructure created for nchat.
Created: 2026-01-31 Status: Ready for Deployment
Optimized Vercel configuration with:
- Next.js framework preset
- pnpm package manager
- Security headers (CSP, X-Frame-Options, etc.)
- Cache control for API routes and static assets
- Clean URLs and trailing slash handling
- Function timeout configuration
Excludes unnecessary files from deployment:
- Backend services (
.backend/) - Development files (tests, docs, etc.)
- Build artifacts
- IDE and OS files
- CI/CD configurations
Comprehensive deployment guide covering:
- Why Vercel?
- Prerequisites
- Quick start with one-click deploy
- Manual deployment steps
- Environment variables setup (required and optional)
- Backend configuration (Nhost Cloud vs self-hosted)
- Custom domain setup
- Deployment monitoring
- 10 Common Issues with Solutions
- Advanced configuration
- Cost estimation
- Post-deployment checklist
Quick reference guide with:
- Links to all deployment guides
- Deployment options comparison table
- Backend requirements
- Quick start instructions
Production deployment checklist with:
- Pre-deployment checklist (8 sections, 50+ items)
- Vercel-specific checklist
- Post-deployment verification
- Ongoing maintenance schedule
- Troubleshooting quick links
Interactive deployment wizard featuring:
- One-click "Deploy to Vercel" button
- Step-by-step accordion guide (5 steps)
- Environment variable reference with copy buttons
- Status indicators for configured variables
- Links to documentation and resources
- Backend setup options (Nhost vs self-hosted)
- Visual progress tracking
Key Features:
- Checks if environment variables are set
- Copy-to-clipboard for env var examples
- Expandable/collapsible step guide
- External links to Vercel, Nhost, GitHub
- Responsive design with Radix UI components
Real-time health monitoring dashboard:
- Overall health status with progress bar
- Service health checks:
- Frontend status
- GraphQL API connectivity
- Authentication service
- Storage service
- Database accessibility
- Deployment information:
- Environment
- Region
- Version
- Commit SHA
- Build time
- Auto-refresh functionality
- Health status indicators (healthy/degraded/unhealthy)
- Warning alerts for dev mode and issues
Export file for deployment components
Admin deployment page with:
- Tabbed interface:
- "Deploy to Vercel" tab
- "Deployment Status" tab
- Full integration with admin layout
- Metadata for SEO
- Added "Deployment" navigation item with Rocket icon
- Positioned between "Advanced" and "Settings"
- Requires owner role
- Highlighted in sidebar when active
- Exported deployment components for easy imports
-
Access Admin Panel
Login as owner β /admin/deployment -
Click "Deploy to Vercel"
- Opens Vercel with pre-configured settings
- Repository, env vars, and project name pre-filled
-
Add Environment Variables
- Copy examples from the UI
- Paste into Vercel dashboard
- Configure backend URLs (Nhost or self-hosted)
-
Deploy
- Click "Deploy" in Vercel
- Wait 2-3 minutes
- Visit your new deployment URL
-
Monitor Status
- Switch to "Deployment Status" tab
- View real-time health checks
- Verify all services are healthy
-
Read the Guide
/docs/guides/deployment/vercel-deployment.md -
Install Vercel CLI
pnpm install -g vercel vercel login
-
Deploy
cd /path/to/nself-chat vercel -
Configure Environment
- Add env vars in Vercel dashboard
- Or use
vercel env add
-
Deploy to Production
vercel --prod
| Variable | Description | Example |
|---|---|---|
NEXT_PUBLIC_USE_DEV_AUTH |
Disable dev auth | false |
NEXT_PUBLIC_APP_URL |
Your deployment URL | https://nchat.vercel.app |
NEXT_PUBLIC_GRAPHQL_URL |
Hasura endpoint | https://api.project.nhost.run/v1/graphql |
NEXT_PUBLIC_AUTH_URL |
Auth service | https://auth.project.nhost.run/v1/auth |
NEXT_PUBLIC_STORAGE_URL |
Storage service | https://storage.project.nhost.run/v1/storage |
| Variable | Description |
|---|---|
NEXT_PUBLIC_SENTRY_DSN |
Error tracking |
NEXT_PUBLIC_GA_ID |
Google Analytics |
GOOGLE_CLIENT_ID |
Google OAuth |
GITHUB_CLIENT_ID |
GitHub OAuth |
See full list in deployment guide.
nself-chat/
βββ .vercelignore # Deployment exclusions
βββ vercel.json # Vercel configuration
βββ VERCEL-DEPLOYMENT-SETUP.md # This file
βββ docs/
β βββ guides/
β βββ deployment/
β βββ README.md # Quick reference
β βββ vercel-deployment.md # Full guide (60KB)
β βββ DEPLOYMENT-CHECKLIST.md # Production checklist
βββ src/
βββ app/
β βββ admin/
β βββ deployment/
β βββ page.tsx # Deployment page
βββ components/
βββ admin/
βββ deployment/
β βββ VercelDeployButton.tsx # Deploy wizard
β βββ DeploymentStatusChecker.tsx # Health monitor
β βββ index.ts # Exports
βββ admin-sidebar.tsx # Updated with nav
βββ index.ts # Updated exports
- β One-click deploy button
- β Step-by-step visual guide
- β Environment variable reference
- β Copy-to-clipboard for examples
- β Required vs optional variable indicators
- β Backend setup options (Nhost vs self-hosted)
- β Links to documentation and resources
- β Status tracking for configured variables
- β Real-time service health checks
- β Frontend status
- β GraphQL API connectivity test
- β Authentication service check
- β Storage service check
- β Database accessibility via GraphQL
- β Overall health percentage
- β Deployment information (version, region, commit)
- β Auto-refresh functionality
- β Visual status indicators
- β Warning alerts for issues
- β Beginner-friendly language
- β Screenshots and examples
- β Troubleshooting section (10+ common issues)
- β Backend configuration guide
- β Custom domain setup
- β Cost estimation
- β Deployment checklist (50+ items)
- β Ongoing maintenance schedule
- Check
package.jsonhas"packageManager": "pnpm@9.15.4" - Ensure
pnpm-lock.yamlexists
- Set
NEXT_PUBLIC_USE_DEV_AUTH=false - Verify
NEXT_PUBLIC_AUTH_URLis correct
- Check
NEXT_PUBLIC_GRAPHQL_URL - Test URL in browser/Postman
- Verify CORS settings in backend
- Verify
NEXT_PUBLIC_STORAGE_URL - Configure CORS for storage service
See full troubleshooting guide in /docs/guides/deployment/vercel-deployment.md#troubleshooting
-
Review the Documentation
- Read
/docs/guides/deployment/vercel-deployment.md - Review
/docs/guides/deployment/DEPLOYMENT-CHECKLIST.md
- Read
-
Prepare Backend
- Set up Nhost project OR deploy nself backend
- Get GraphQL, Auth, and Storage URLs
-
Deploy
- Login as owner β
/admin/deployment - Click "Deploy to Vercel"
- Configure environment variables
- Deploy!
- Login as owner β
-
Monitor
- Check "Deployment Status" tab
- Verify all services are healthy
- Test application functionality
-
Configure
- Run setup wizard
- Customize branding
- Invite team members
-
Documentation:
/docs/guides/deployment/vercel-deployment.md -
In-App Helper:
/admin/deployment(requires owner role) - Community: Discord
- Issues: GitHub Issues
- Email: support@nself.org
- Next.js 15.5.10: React framework
- Vercel: Deployment platform
- Radix UI: Component primitives
- Tailwind CSS: Styling
- Lucide Icons: Icon system
// VercelDeployButton.tsx
import { Button, Card, Badge, Alert, Accordion } from '@/components/ui'
// DeploymentStatusChecker.tsx
import { Button, Card, Badge, Alert, Progress, Separator } from '@/components/ui'// Checks if running in dev mode
const isDevMode = process.env.NEXT_PUBLIC_USE_DEV_AUTH === 'true'
// Checks if env var is set
const isSet = Boolean(process.env[varName])// Tests GraphQL connectivity
fetch(graphqlUrl, {
method: 'POST',
body: JSON.stringify({ query: '{ __typename }' }),
})
// Tests service endpoints
fetch(`${authUrl}/healthz`)- Created Vercel deployment configuration
- Added comprehensive deployment guide (60KB)
- Built in-app deployment helper components
- Integrated with admin panel
- Added health monitoring dashboard
- Created deployment checklist
- Updated admin navigation
Status: β Ready for Production Deployment Tested: Local development environment Platform: Vercel (recommended) Difficulty: Beginner-friendly
nself-chat v0.3.0 | GitHub | Issues | Discussions | Demo
Edit this page | MIT License | Β© 2026
(See π Security section below for 2FA, PIN Lock, and security audits.)
(Search lives in π Reference below.)
- π¬ Advanced Messaging
- π E2EE Setup
- π Search Setup
- π Call Management
- πΊ Live Streaming
- π₯οΈ Screen Sharing
- πΉ Video Calling
- ποΈ Voice Calling
- π± Mobile Optimization
- π§ͺ Testing
- π i18n
- π API Overview
- π Complete Reference
- π» API Examples
- π€ Bot API
- π Auth API
- π GraphQL Schema
- π Deployment Overview
- π³ Docker
- βΈοΈ Kubernetes
- β Helm Charts
- β Production Checklist
- π Production Validation
- π’ Multi-Tenant
- ποΈ Architecture
- π Diagrams
- ποΈ Database Schema
- π Project Structure
- π TypeScript Types
- π SPORT Reference
- π 2FA
- π¬ Messaging
- π Call Management
- π Call State Machine
- π E2EE
- πΊ Live Streaming
- π± Mobile Calls
- π PIN Lock
- π Polls
- π₯οΈ Screen Sharing
- π Search
- π Social Media
- ποΈ Voice Calling
- π Security Overview
- π‘οΈ Security Audit
- β‘ Performance
- π Best Practices
- π 2FA
- π PIN Lock
- π E2EE
- π‘οΈ E2EE Audit
v1.0.0 β’ 2026