Skip to main content
📞 1-888-784-3881🚀 Start Project
🔐Getting Started

Environment Variables

Configure your environment for development and production.

⏱️ 6 min read

Required Variables

VariableDescriptionRequired
PROPTECH_API_KEYYour API key for authenticationYes
PROPTECH_WEBHOOK_SECRETSecret for validating webhooksIf using webhooks

Optional Variables

VariableDescriptionDefault
PROPTECH_BASE_URLAPI base URLhttps://api.proptechusa.ai
PROPTECH_TIMEOUTRequest timeout in ms30000
PROPTECH_RETRY_COUNTNumber of retries3

Example .env.local

# Required

PROPTECH_API_KEY=pk_live_xxxxxxxxxxxxx

# Webhooks

PROPTECH_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxx

# Optional overrides

PROPTECH_BASE_URL=https://api.proptechusa.ai

PROPTECH_TIMEOUT=30000

# Third-party integrations

SLACK_WEBHOOK_URL=https://hooks.slack.com/services/xxx

STRIPE_SECRET_KEY=sk_live_xxxxxxxxxxxxx

Environment-Specific Configuration

Development

# .env.development

PROPTECH_API_KEY=pk_test_xxxxxxxxxxxxx

PROPTECH_BASE_URL=https://api-staging.proptechusa.ai

Production

# .env.production

PROPTECH_API_KEY=pk_live_xxxxxxxxxxxxx

PROPTECH_BASE_URL=https://api.proptechusa.ai

Security Best Practices

  • Never commit .env files - Add to .gitignore
  • Use different keys per environment - Separate test/production
  • Rotate keys regularly - Update quarterly at minimum
  • Use secrets management - Vercel, AWS Secrets Manager, etc.