Paladin Farm & Ranch
PALADIN
Contact Us
Contact UsDisaster ResourcesUser ManualDeveloper Docs

© 2026 Paladin Farm and Ranch

PO Box 7228 Glen Rose, TX 76043

Stephen@PaladinFarmandRanch.com

Environment Variables

Required environment variables for the application

Configuration

All environment variables are defined in a .env file at the project root. A template is provided in .env.example. Never commit actual values to version control.env is already in .gitignore.

Required Variables

Database (PostgreSQL)

VariableDescription
DATABASE_URLFull connection string, e.g. postgresql://user:password@localhost:5432/paladin
DATABASE_HOSTDatabase hostname
DATABASE_PORTDatabase port
DATABASE_USERDatabase username
DATABASE_PWDatabase password
DATABASE_NAMEDatabase name

NextAuth

VariableDescription
AUTH_SECRETSession encryption key — generate with openssl rand -base64 32
AUTH_URLApplication URL, e.g. http://localhost:3000
AUTH_GOOGLE_IDGoogle OAuth client ID
AUTH_GOOGLE_SECRETGoogle OAuth client secret

Google Maps

VariableDescription
NEXT_PUBLIC_GOOGLE_MAPS_API_KEYGoogle Maps JavaScript API key

Email (Resend)

VariableDescription
RESEND_API_KEYAPI key for the Resend email service
NOTIFICATION_EMAILRecipient for contact form submissions

Push Notifications (VAPID)

VariableDescription
NEXT_PUBLIC_VAPID_PUBLIC_KEYPublic VAPID key for web push
VAPID_PRIVATE_KEYPrivate VAPID key

PayPal

VariableDescription
NEXT_PUBLIC_PAYPAL_CLIENT_IDPayPal client ID (exposed to browser)
NEXT_PUBLIC_PAYPAL_PLAN_IDPayPal subscription plan ID
PAYPAL_CLIENT_IDPayPal client ID (server-side)
PAYPAL_SECRETPayPal API secret
PAYPAL_API_BASEAPI base URL — defaults to https://api-m.sandbox.paypal.com

Obtaining Credentials

Contact the project mentor for the complete .env file. For new API keys: