puffin-app/server/.env.example
Matt 9e621042db
All checks were successful
Build and Push Docker Image / docker (push) Successful in 42s
Add WREN_DRY_RUN environment variable for safe testing
Prevent accidental creation of real carbon offsets during development:
- Add WREN_DRY_RUN environment variable (default: true for dev)
- Update webhook fulfillment to use env variable instead of hardcoded value
- Log warning when in dry run mode for visibility
- Production deployments should set WREN_DRY_RUN=false

This allows safe testing with Stripe test cards without creating real Wren offset orders.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 22:07:06 +01:00

18 lines
477 B
Plaintext

# Stripe Configuration
STRIPE_SECRET_KEY=sk_test_your_secret_key_here
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret_here
# Wren Climate API
WREN_API_TOKEN=35c025d9-5dbb-404b-85aa-19b09da0578d
# Set to 'true' for testing (no real offsets created), 'false' for production
WREN_DRY_RUN=true
# Server Configuration
PORT=3001
# Development: http://localhost:5173
# Production: https://puffinoffset.com
FRONTEND_URL=https://puffinoffset.com
# Database
DATABASE_PATH=./orders.db