-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
41 lines (34 loc) · 1.7 KB
/
.env.example
File metadata and controls
41 lines (34 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Basic
NEXT_PUBLIC_SITE_URL=http://localhost:3000
# Supabase Credentials (From your local project generated using Supabase CLI)
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=xxxxxxxxx
SUPABASE_SECRET_KEY=xxxxxxxx
# Upstash
UPSTASH_REDIS_REST_URL=xxxxxxxxx
UPSTASH_REDIS_REST_TOKEN=xxxxxxxxx
# Resend (Email Service)
RESEND_API_KEY=re_xxxxxxxxx
RESEND_FROM_EMAIL=onboarding@resend.dev
# Cron Secret (for reminder endpoint)
CRON_SECRET=your-secret-key-here
# FreeWrite CMS
FREEWRITE_API_KEY=your-freewrite-api-key
# Google OAuth Credentials (for local development)
# Get these from Google Cloud Console (https://console.cloud.google.com/)
# 1. Create OAuth 2.0 Client ID (Web application)
# 2. Add ALL of these authorized redirect URIs:
# - http://127.0.0.1:54321/auth/v1/callback (local Supabase auth)
# - http://localhost:54321/auth/v1/callback (local Supabase auth alternative)
# - http://localhost:3000/api/callback (Next.js app)
# - http://127.0.0.1:3000/api/callback (Next.js app alternative)
SUPABASE_AUTH_EXTERNAL_GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET=your-google-client-secret
# Feature Flags - Authentication
# Set to 1 to enable, 0 to disable
NEXT_PUBLIC_AUTH_ENABLED=1 # Master switch for all auth pages
NEXT_PUBLIC_LOGIN_EMAIL_AUTH_ENABLED=1 # Email+password form on login page
NEXT_PUBLIC_REGISTER_EMAIL_AUTH_ENABLED=1 # Email+password form on register page
NEXT_PUBLIC_FORGOT_PASSWORD_ENABLED=1 # Forgot password page
NEXT_PUBLIC_RESET_PASSWORD_ENABLED=1 # Reset password page
AUTH_ALLOW_GOOGLE_SIGNUP=1 # Allow new users via Google OAuth