-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
24 lines (21 loc) · 1.12 KB
/
Copy path.env.example
File metadata and controls
24 lines (21 loc) · 1.12 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
# ============================================
# Spotify API Configuration
# ============================================
# 請在 https://developer.spotify.com/dashboard 建立應用程式取得 Client ID
NEXT_PUBLIC_SPOTIFY_CLIENT_ID=your_spotify_client_id_here
NEXT_PUBLIC_SPOTIFY_REDIRECT_URI_WEB=http://127.0.0.1:3000/callback
NEXT_PUBLIC_SPOTIFY_REDIRECT_URI_PROD=https://your-domain.com/callback
# Spotify Client Secret (後端 Cron Job 用來刷新 token)
SPOTIFY_CLIENT_ID=your_spotify_client_id_here
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret_here
# ============================================
# Database (Supabase)
# ============================================
# 在 Supabase Dashboard > Settings > Database 取得連接字串
# 使用 Session Pooler 連接 (IPv4 相容)
DATABASE_URL=postgresql://postgres.your_project_id:your_password@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?sslmode=require
# ============================================
# Vercel Cron Job Security
# ============================================
# 用於驗證 Cron Job 請求,可以是任意隨機字串
CRON_SECRET=your_random_secret_here