digitaltrendz.dev
Integrations
All connected services, their roles, env vars, and dashboard links.
Security — Environment Variables
- ·Never commit env vars to git. Use Vercel dashboard (Settings → Environment Variables) for production.
- ·Pull local env with: vercel env pull .env.local
- ·Rotate keys immediately if accidentally exposed in terminal output or logs.
- ·SUPABASE_SERVICE_ROLE_KEY bypasses Row Level Security — never expose client-side.
- ·RESEND_WEBHOOK_SECRET is used to verify incoming Resend webhook signatures.
Supabase
Database · Auth · Realtime
Description
Primary database (PostgreSQL), auth provider (email/password + OAuth), and real-time subscriptions.
Used For
- ·User authentication (Supabase Auth)
- ·All app data (blogs, projects, users, courseware)
- ·Real-time features
- ·File storage (Supabase Storage)
Env Variables
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYResend
Transactional Email
Description
Handles all outbound emails (contact forms, lead forms, notifications) and inbound email via Resend Inbox.
Used For
- ·Contact form confirmations
- ·Lead form notifications
- ·Inbound email inbox (superadmin)
- ·Webhook events for email tracking
Env Variables
RESEND_API_KEYRESEND_WEBHOOK_SECRETOpenAI
AI Agent · Chat Completions
Description
Powers the DT AI assistant (chat widget on the main site) and the AI gateway endpoint.
Used For
- ·Floating chat assistant on digital-trendz.net
- ·/api/ai-agent endpoint
- ·/api/v1/gateway/chat unified gateway
- ·Blog auto-generation (cron)
Env Variables
OPENAI_API_KEYVercel
Hosting · Edge · DNS · CI/CD
Description
Hosts all three domains on the same Next.js deployment. Also manages DNS for digitaltrendz.app and digitaltrendz.dev via Vercel Nameservers.
Used For
- ·digital-trendz.net (primary site)
- ·digitaltrendz.app (showcase)
- ·digitaltrendz.dev (dev portal)
- ·Vercel Cron for blog generation
- ·Environment variable management
Env Variables
Managed by Vercel dashboardGitHub
Source Control · CI
Description
Source of truth for the main digitaltrendz codebase. Vercel auto-deploys on push to main (when webhook is active).
Used For
- ·Main codebase: github.com/dataswarmproject/digitaltrendz
- ·Auto-deploy to Vercel on push to main
- ·Branch previews per PR
Env Variables
No env vars — Vercel GitHub integration