forked from boxyhq/saas-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.clerk.example
More file actions
34 lines (25 loc) · 1.05 KB
/
.env.clerk.example
File metadata and controls
34 lines (25 loc) · 1.05 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
# Clerk Configuration
# Get these values from https://dashboard.clerk.com
# Publishable key (safe to expose in frontend)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
# Secret key (keep secure, server-side only)
CLERK_SECRET_KEY=sk_test_...
# Authentication URLs
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/auth/login
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/auth/join
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard
# Webhook secret for syncing users/orgs
# Get this from Clerk dashboard > Webhooks > Endpoint > Signing Secret
CLERK_WEBHOOK_SECRET=whsec_...
# Optional: Force users to sign in to access the application
NEXT_PUBLIC_CLERK_FORCE_SIGN_IN=true
# Optional: Customize Clerk URLs (if using custom domain)
# NEXT_PUBLIC_CLERK_DOMAIN=clerk.yourdomain.com
# Keep existing environment variables for gradual migration
# These will be removed after full migration to Clerk
NEXTAUTH_URL=http://localhost:4002
NEXTAUTH_SECRET=your-secret-here
# Database (unchanged)
DATABASE_URL=postgresql://...
# Other existing configs remain the same...