-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
82 lines (71 loc) · 3.24 KB
/
.env.example
File metadata and controls
82 lines (71 loc) · 3.24 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# RPM Detailing Environment Variables
# Copy this file to .env.local and fill in your values
# ========================================
# DATABASE (Neon PostgreSQL)
# ========================================
# Get these from your Neon dashboard: https://console.neon.tech
DATABASE_URI=postgresql://user:password@host/database?sslmode=require
# These are auto-populated by Vercel when using Neon integration
DATABASE_URL="postgres://user:password@host-pooler.region.aws.neon.tech/database?sslmode=require"
DATABASE_URL_UNPOOLED="postgres://user:password@host.region.aws.neon.tech/database?sslmode=require"
POSTGRES_PRISMA_URL="postgres://user:password@host-pooler.region.aws.neon.tech/database?sslmode=require"
POSTGRES_URL="postgres://user:password@host-pooler.region.aws.neon.tech/database?sslmode=require"
POSTGRES_URL_NON_POOLING="postgres://user:password@host.region.aws.neon.tech/database?sslmode=require"
POSTGRES_URL_NO_SSL="postgres://user:password@host-pooler.region.aws.neon.tech/database"
# Individual Postgres connection details (alternative to connection strings)
POSTGRES_DATABASE="your-database-name"
POSTGRES_HOST="your-host-pooler.region.aws.neon.tech"
POSTGRES_PASSWORD="your-password"
POSTGRES_USER="your-username"
# Simplified versions (used by some tools)
PGDATABASE="your-database-name"
PGHOST="your-host-pooler.region.aws.neon.tech"
PGHOST_UNPOOLED="your-host.region.aws.neon.tech"
PGPASSWORD="your-password"
PGUSER="your-username"
# Neon project identifier
NEON_PROJECT_ID="your-neon-project-id"
# ========================================
# PAYLOAD CMS
# ========================================
# Generate a secure random string (min 32 characters)
# You can use: openssl rand -base64 32
PAYLOAD_SECRET=your-secret-key-here-min-32-chars
# ========================================
# APPLICATION
# ========================================
# Server URL - Important for image handling and redirects
# Local: http://localhost:3000
# Production: https://your-domain.com or https://your-project.vercel.app
NEXT_PUBLIC_SERVER_URL=http://localhost:3000
# ========================================
# AUTHENTICATION (Stack Auth)
# ========================================
# Get these from Stack dashboard: https://app.stack-auth.com
NEXT_PUBLIC_STACK_PROJECT_ID=your-stack-project-id
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=your-publishable-key
STACK_SECRET_SERVER_KEY=your-secret-server-key
# ========================================
# OPTIONAL FEATURES
# ========================================
# Cron job security (if using scheduled tasks)
# CRON_SECRET=your-cron-secret
# Preview mode security
# PREVIEW_SECRET=your-preview-secret
# ========================================
# DEPLOYMENT NOTES
# ========================================
# For Vercel deployment:
# 1. These env vars are automatically set by Vercel:
# - VERCEL_URL
# - VERCEL_PROJECT_PRODUCTION_URL
# - VERCEL_ENV
#
# 2. Make sure to add all required env vars in Vercel dashboard:
# - Go to Project Settings > Environment Variables
# - Add each variable for Production/Preview/Development as needed
#
# 3. The NEXT_PUBLIC_SERVER_URL should be:
# - Development: http://localhost:3000
# - Preview: Automatically handled by next.config.js
# - Production: Your actual domain (e.g., https://rpmdetail.co)