.env.local file by copying .env.example. For production, set these variables in your hosting provider’s environment settings (for example, Vercel’s Settings → Environment Variables).
Variables by service
Database
These variables connect RefactKit to your Supabase PostgreSQL database via Drizzle ORM.
Find
DATABASE_URL in your Supabase project under Project Settings → Database → Connection string → URI → Transaction pooler.
Authentication
Better Auth uses these variables to sign sessions, locate your app, and secure the built-in admin dashboard.
Generate a secret:
For Resend, your email settings will look like:
In development, Resend’s sandbox lets you send without a verified domain. For production, add DNS records (SPF, DKIM) to your domain via Resend → Domains to prevent emails landing in spam.
Storage
These variables connect RefactKit to Supabase Storage for file uploads (avatars, organization logos, gallery images).Application
Full reference table
The .env.example file
The repository ships with a.env.example file showing every variable with placeholder values. Copy it to .env.local before running the app:
.env.example:
.env.local is gitignored by default. Never commit real credentials to version control.