Skip to main content

Configuration

WP Dash is configured through environment variables loaded from .env.

Required Variables

VariableDescription
NEXT_PUBLIC_SUPABASE_URLYour Supabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEYSupabase anon/public key

Optional Variables

VariableDefaultDescription
NODE_ENVdevelopmentNode environment
PORT3000Port for the production server
HOSTNAME0.0.0.0Bind address (Docker)

Setting Up Supabase

WP Dash uses Supabase for authentication and site storage.

  1. Create a free project at supabase.com
  2. Copy your Project URL and anon key from Settings → API
  3. Add them to your .env:
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
  1. Run database migrations:
npm run db:migrate