Configure your ProStack application with environment variables
.env
: Main environment file for local development.env.docker
: Environment variables for Docker deployment.env.production
: Production-specific variables (used during build)Variable | Description | Example |
---|---|---|
NEXT_PUBLIC_BASE_URL | Base URL of your application | http://localhost:3000 |
DATABASE_URL | PostgreSQL connection string | postgresql://postgres:password@localhost:5432/prostack |
BETTER_AUTH_SECRET | Secret key for authentication | Generate with openssl rand -hex 32 |
Variable | Description | Required | Example |
---|---|---|---|
BETTER_AUTH_SECRET | Authentication encryption key | Yes | 1234... (32-byte hex) |
GOOGLE_CLIENT_ID | Google OAuth client ID | For Google auth | 123456789-abcdefg.apps.googleusercontent.com |
GOOGLE_CLIENT_SECRET | Google OAuth client secret | For Google auth | GOCSPX-abcdefghijklmnop |
RESEND_API_KEY | API key for Resend email service | For email functionality | re_123456789 |
RESEND_EMAILS_DOMAIN | Domain for sending emails | For email functionality | mail.yourdomain.com |
Variable | Description | Required | Example |
---|---|---|---|
OPENAI_API_KEY | OpenAI API key | For chat functionality | sk-123456789 |
GOOGLE_SE_API_KEY | Google Search API key | For web search tool | AIzaSyABC123 |
GOOGLE_CSE_ID | Google Custom Search Engine ID | For web search tool | 123456:abcdef |
Variable | Description | Required | Example |
---|---|---|---|
BLOB_READ_WRITE_TOKEN | Vercel Blob storage token | For file uploads | vercel_blob_rw_123456789 |
Variable | Description | Required | Example |
---|---|---|---|
GOOGLE_SITE_VERIFICATION_ID | Google Search Console verification | No | google1234567890 |
DISCORD_SITE_INVITATION_LINK | Discord community invitation link | No | https://discord.gg/8yPw7vHj9E |
.env.example
file and update the values:
.env
file with your values.
.env.docker
file:
.env
files to your repository