Configuration Overview
TalentG uses environment variables and configuration files to manage different settings across development, staging, and production environments.Environment Variables
Required Variables
Create a.env.local file in your project root:
Optional Variables
Supabase Configuration
Project Setup
-
Create Supabase Project:
- Go to supabase.com
- Create new project
- Note down URL and anon key
-
Database Schema:
-
Row Level Security:
Authentication Setup
-
Configure Auth Providers:
- Go to Authentication > Providers
- Enable Email/Password
- Configure OAuth providers (Google, GitHub)
-
Email Templates:
- Customize confirmation emails
- Set up password reset templates
- Configure magic link templates
Next.js Configuration
next.config.js
TypeScript Configuration
TailwindCSS Configuration
tailwind.config.js
Database Configuration
Connection Pooling
Migration Management
Email Configuration
Brevo Setup
-
Create Brevo Account:
- Sign up at brevo.com
- Verify your domain (
talentg.io) - Get API key
-
Email Templates:
-
Strength Finder Email System:
The application includes an automated email system for Strength Finder PDF reports:
How it works:
- When a user completes an assessment and the PDF is generated, the system automatically enqueues an email
- Emails are sent via Brevo with the PDF attached using stored templates
- Daily rate limiting ensures compliance with Brevo’s 300 email/day free tier limit
- Free Tier Limit: 300 emails per day
- Over-limit handling: Excess emails are deferred to the next available time window
- User deduplication: Only 1 strength report email per user per day
Email Flow:- User completes assessment → PDF generates
- PDF becomes “ready” → Email automatically enqueued
- Cron job processes queue hourly → Sends emails via Brevo
- User receives email with PDF attachment
- Success/failure logged in database
File Upload Configuration
UploadThing Setup
-
Create UploadThing Account:
- Sign up at uploadthing.com
- Create new app
- Get API keys
-
Configure Upload Routes: