feat: add .env.dev.example for development configuration

This commit is contained in:
Linus Rath
2026-03-13 19:20:28 +01:00
parent 81c0a8a971
commit d49dcb52e6
2 changed files with 50 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
# Bulwark Webmail — Development Configuration
# Copy this file to .env.local to run with the built-in mock JMAP server.
# No external mail server required — great for UI development and testing.
#
# Usage:
# cp .env.dev.example .env.local
# npm run dev
# Open http://localhost:3000 — log in with any username/password.
# =============================================================================
# Mock JMAP Server
# =============================================================================
# Enable the built-in mock JMAP server (served at /api/dev-jmap)
DEV_MOCK_JMAP=true
# Point the app at its own mock endpoint.
# IMPORTANT: This must match the origin the app runs on (default: port 3000).
# Using a different port (e.g. 3001) will cause CORS errors.
JMAP_SERVER_URL=/api/dev-jmap
# =============================================================================
# App
# =============================================================================
APP_NAME=Bulwark Webmail (Dev)
# =============================================================================
# Session & Settings Sync (optional for dev)
# =============================================================================
SESSION_SECRET=dev-secret-not-for-production
SETTINGS_SYNC_ENABLED=true
# =============================================================================
# Logging (verbose for development)
# =============================================================================
LOG_FORMAT=text
LOG_LEVEL=debug
# =============================================================================
# Login Page Customization (optional)
# =============================================================================
# LOGIN_COMPANY_NAME=Dev Team
# LOGIN_IMPRINT_URL=https://example.com/imprint
# LOGIN_PRIVACY_POLICY_URL=https://example.com/privacy
# LOGIN_WEBSITE_URL=https://example.com
+1
View File
@@ -33,6 +33,7 @@ yarn-error.log*
# env files # env files
.env* .env*
!.env.example !.env.example
!.env.dev.example
# vercel # vercel
.vercel .vercel