mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-26 08:01:20 +00:00
Enable post-build configuration by reading env vars at request time instead of build time. This allows Docker containers to be configured without rebuilding the image. - Add /api/config endpoint for runtime config - Add useConfig hook with caching - Update login page with proper loading/error states - Add i18n translations for config errors - Maintain backwards compatibility with NEXT_PUBLIC_* vars
23 lines
915 B
Bash
23 lines
915 B
Bash
# JMAP Webmail Configuration
|
|
# Copy this file to .env.local and fill in your values
|
|
|
|
# =============================================================================
|
|
# Runtime Configuration (recommended for Docker)
|
|
# These are read at request time, allowing post-build configuration
|
|
# =============================================================================
|
|
|
|
# App name displayed in the UI
|
|
APP_NAME=JMAP Webmail
|
|
|
|
# JMAP server URL (required)
|
|
# This is the URL of your JMAP-compatible mail server
|
|
JMAP_SERVER_URL=https://your-jmap-server.com
|
|
|
|
# =============================================================================
|
|
# Build-time Configuration (legacy, still supported as fallback)
|
|
# These are baked into the bundle at build time
|
|
# =============================================================================
|
|
|
|
# NEXT_PUBLIC_APP_NAME=JMAP Webmail
|
|
# NEXT_PUBLIC_JMAP_SERVER_URL=https://your-jmap-server.com
|