feature flags

This commit is contained in:
2026-01-03 12:07:20 +01:00
parent 9a7efa496f
commit 213580511c
5 changed files with 289 additions and 26 deletions

View File

@@ -1,12 +1,15 @@
# GridPilot Website Environment Variables
# Application Mode
# Controls whether the site is in pre-launch or alpha mode
# Valid values: "pre-launch" | "alpha"
# Default: "pre-launch" (if not set)
# Note: NEXT_PUBLIC_ prefix exposes this to both server and browser
# pre-launch = landing page only, no features
# alpha = full platform with all features enabled automatically
NEXT_PUBLIC_GRIDPILOT_MODE=pre-launch
# Feature Flags (Optional - only needed for custom feature selection)
# When in alpha mode, all features are enabled automatically
# Use this to override or select specific features
# FEATURE_FLAGS=driver_profiles,team_profiles,wallets,sponsors,team_feature
# Vercel KV (for email signups and rate limiting)
# Get these from: https://vercel.com/dashboard -> Storage -> KV
# OPTIONAL in development (uses in-memory fallback)
@@ -23,5 +26,14 @@ NEXT_PUBLIC_SITE_URL=https://gridpilot.com
# Example: https://discord.gg/your-invite-code
NEXT_PUBLIC_DISCORD_URL=https://discord.gg/your-invite-code
# Example for alpha mode:
# NEXT_PUBLIC_GRIDPILOT_MODE=alpha
# Example configurations:
# Pre-launch (default)
# NEXT_PUBLIC_GRIDPILOT_MODE=pre-launch
# Alpha with all features (recommended)
# NEXT_PUBLIC_GRIDPILOT_MODE=alpha
# Alpha with specific features only
# NEXT_PUBLIC_GRIDPILOT_MODE=alpha
# FEATURE_FLAGS=driver_profiles,wallets