operations

Local Development Setup

Disable Email Confirmation for Local Development

To allow instant signups without email confirmation when running locally:

  1. Go to your Supabase project dashboard
  2. Navigate to Authentication > Settings
  3. Scroll down to Email Auth section
  4. Toggle OFF "Enable email confirmations"
  5. Save changes

Now users can sign up and immediately sign in without email confirmation.

Option 2: Auto-Confirmation via Backend (Automatic)

The app includes automatic user confirmation in development mode:

  • When NODE_ENV=development, the signup flow will attempt to auto-confirm users
  • Requires SUPABASE_SERVICE_ROLE_KEY to be set in backend .env
  • Falls back gracefully if confirmation fails

Testing

After disabling email confirmation:

  1. Sign up with a new email
  2. You should be automatically signed in and redirected to dashboard
  3. No email confirmation needed!

Re-enable for Production

Important: Before deploying to production, make sure to:

  1. Re-enable email confirmations in Supabase dashboard
  2. Set NODE_ENV=production in your production environment
  3. Configure proper email templates in Supabase

Other Local Development Tips

Supabase Local Development

You can also run Supabase locally using Docker:

# Install Supabase CLI
npm install -g supabase

# Start local Supabase
supabase start

This gives you a local Supabase instance without needing the cloud service.

Environment Variables

Make sure your .env.local (frontend) and .env (backend) files are set up correctly. See QUICKSTART.md for details.

LOCAL DEVELOPMENT — Docs | HiveJournal