Files
cozsweet-frontend-nextjs/.env.example
T
admin cac3ecd5de chore: add .env.example template and clean up deploy messages
Introduce a tracked .env.example file documenting all required environment
variables (app env, API/WebSocket base URLs, timeouts, Google/Facebook OAuth
credentials, Cloudflare CDN zone/token). Update .gitignore to allow this
file despite the blanket .env* ignore rule. Also simplify the push
success/failure output in scripts/deploy/_deploy_lib.sh by removing
verbose troubleshooting hints.
2026-06-12 14:13:20 +08:00

32 lines
1.0 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 当前环境: development | test | production
NEXT_PUBLIC_APP_ENV=development
# 后端 API 基础 URL(按环境区分)
# development: http://172.16.48.49:3002
# test: https://api.cozsweet.com
# production: https://api.cozsweet.com
NEXT_PUBLIC_API_BASE_URL=http://172.16.48.49:3002
# WebSocket URL(按环境区分,可选)
# development: ws://172.16.48.49:3002
# test: wss://api.cozsweet.com
# production: wss://api.cozsweet.com
NEXT_PUBLIC_WS_BASE_URL=ws://172.16.48.49:3002
# API 超时时间(毫秒)
NEXT_PUBLIC_API_CONNECT_TIMEOUT=30000
NEXT_PUBLIC_API_RECEIVE_TIMEOUT=60000
NEXT_PUBLIC_API_SEND_TIMEOUT=30000
# Google OAuth 2.0 Client ID / Secret (Google Cloud Console → APIs & Services → Credentials)
AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
# Facebook App ID / Secret (Facebook Developers → 应用设置 → 基础)
AUTH_FACEBOOK_ID=
AUTH_FACEBOOK_SECRET=
# Cloudflare CDNtest / production 部署后刷缓存用,scripts/deploy/_deploy_lib.sh 的 purge_cdn_cache 读这里)
CF_ZONE_ID=
CF_API_TOKEN=