DirFast reads configuration from environment variables. Start with the four required values, then add only the integrations your site uses.
Required values
NEXT_PUBLIC_APP_URL=https://<your-domain>
NEXT_PUBLIC_SUPABASE_URL=https://<project-ref>.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=<supabase-anon-key>
SUPABASE_SERVICE_ROLE_KEY=<supabase-service-role-key>NEXT_PUBLIC_* values are available to browser code. SUPABASE_SERVICE_ROLE_KEY is a server secret and must not be exposed to the client.
Resend email
Add these values when you send transactional email or newsletter messages.
RESEND_API_KEY=<resend-api-key>
RESEND_EMAIL_FROM=hello@<your-domain>
RESEND_EMAIL_ADMIN=you@<your-domain>
RESEND_AUDIENCE_ID=<resend-audience-id>Verify the sending domain in Resend before using a production sender address.
Dodo Payments
Paid and sponsored submissions use Dodo Payments.
DODO_PAYMENTS_API_KEY=<dodo-api-key>
DODO_PAYMENTS_ENVIRONMENT=test_mode
DODO_PAYMENTS_WEBHOOK_KEY=<dodo-webhook-key>
NEXT_PUBLIC_DODO_LISTING_PRO_PRODUCT_ID=<product-id>
NEXT_PUBLIC_DODO_LISTING_FEATURED_PRODUCT_ID=<product-id>
NEXT_PUBLIC_DODO_SPONSOR_BANNER_PRODUCT_ID=<product-id>
NEXT_PUBLIC_DODO_SPONSOR_LISTING_PRODUCT_ID=<product-id>
NEXT_PUBLIC_DODO_SPONSOR_DETAIL_PAGE_PRODUCT_ID=<product-id>Use test_mode while testing. Change to live_mode for production and set the matching production product IDs. Configure the Dodo webhook endpoint as https://<your-domain>/api/webhook.
Inngest background jobs
Add these values when you connect the production Inngest environment.
INNGEST_DEV=
INNGEST_SIGNING_KEY=<inngest-signing-key>
INNGEST_EVENT_KEY=<inngest-event-key>The app exposes the function endpoint at /api/inngest.
AI-assisted submissions
Set the provider selected by DEFAULT_AI_PROVIDER, then provide the matching key.
DEFAULT_AI_PROVIDER=google
GOOGLE_GENERATIVE_AI_API_KEY=<google-key>Supported provider values are google, deepseek, openai, xai, and openrouter. OpenRouter also uses OPENROUTER_MODEL.
DEEPSEEK_API_KEY=<deepseek-key>
OPENAI_API_KEY=<openai-key>
XAI_API_KEY=<xai-key>
OPENROUTER_API_KEY=<openrouter-key>
OPENROUTER_MODEL=<model-name>Analytics and notifications
Add the provider-specific values you need.
NEXT_PUBLIC_OPENPANEL_CLIENT_ID=<openpanel-client-id>
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=<google-analytics-id>
NEXT_PUBLIC_UMAMI_WEBSITE_ID=<umami-website-id>
NEXT_PUBLIC_UMAMI_SCRIPT=https://cloud.umami.is/script.js
NEXT_PUBLIC_PLAUSIBLE_DOMAIN=<your-domain>
NEXT_PUBLIC_PLAUSIBLE_SCRIPT=https://plausible.io/js/script.js
DISCORD_WEBHOOK_URL=<discord-webhook-url>Restart the development server after editing .env. In Vercel, update the variables for the correct environment and redeploy so the new values are applied.
