Files
cozsweet-frontend-nextjs/env-example/.env.production.example
T
admin 0548a08cbb feat: integrate Stripe payment with subscription plans
Add Stripe payment integration across the project:

- Add @stripe/stripe-js dependency
- Configure Stripe environment variables (secret key, publishable key, webhook secret) for dev, local, and production environments
- Add Product/Price IDs for monthly, quarterly, and annual subscription tiers
- Extend subscription plan data with voiceMinutesPerDay quotas (30/45/60 minutes per tier)
- Update .gitignore to exclude implementation_plan.md
2026-06-16 10:21:02 +08:00

49 lines
2.1 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.
# 当前环境: production
NEXT_PUBLIC_APP_ENV=production
# NextAuth v4 —— OAuth callback **公**网 base URL**必**须与**公**网域名**一**致)
NEXTAUTH_URL=https://cozsweet.com
NEXTAUTH_URL_INTERNAL=http://localhost:3000
# 后端 API 基础 URL(生产环境)
NEXT_PUBLIC_API_BASE_URL=https://api.cozsweet.com
# WebSocket URL(生产环境,可选)
NEXT_PUBLIC_WS_BASE_URL=wss://api.cozsweet.com
# API 超时时间(毫秒)
NEXT_PUBLIC_API_CONNECT_TIMEOUT=30000
NEXT_PUBLIC_API_RECEIVE_TIMEOUT=60000
NEXT_PUBLIC_API_SEND_TIMEOUT=30000
# next-auth v4Auth.js)—— JWT 签名密钥
# production 环境独立密钥(**最**重要,**签**发**用**户 session cookie
AUTH_SECRET=XypsCWoLCNmwOaq4taIMJHe4+cU9YZBaYN4VMTtmSik=
# 第三方 OAuth
AUTH_GOOGLE_ID=351948560061-isubggf6eahfii9n0stpf2qu3haralro.apps.googleusercontent.com
AUTH_GOOGLE_SECRET=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
AUTH_FACEBOOK_ID=26934819589512827
AUTH_FACEBOOK_SECRET=004b1a9384b3433e153992e5edcef4ad
# Cloudflare CDNtest / production 部署后刷缓存用)
CF_ZONE_ID=b1b6bfb7795667609c8e7f418af0156b
CF_API_TOKEN=cfut_xyHb70XCw0j8f5Wz5fg5PemUQ2ZHnSpWvmrBvVeK94d3b00f
# ─────────────────────────────
# Stripe 支付(**生**产**环**境** live keys —— **从** https://dashboard.stripe.com/apikeys 拿**到**
# **不**要** commit 真**实** key 到**版**本**控**制**
# ─────────────────────────────
STRIPE_SECRET_KEY=sk_live_replace_with_your_live_secret_key
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_live_replace_with_your_live_publishable_key
# webhook 签**名**密**钥****从** Stripe dashboard / Webhooks **端**点**的** "Signing secret" **拿**到**
STRIPE_WEBHOOK_SECRET=whsec_replace_with_your_live_webhook_signing_secret
STRIPE_PRODUCT_MONTHLY=prod_replace_monthly
STRIPE_PRICE_MONTHLY=price_replace_monthly
STRIPE_PRODUCT_QUARTERLY=prod_replace_quarterly
STRIPE_PRICE_QUARTERLY=price_replace_quarterly
STRIPE_PRODUCT_ANNUAL=prod_replace_annual
STRIPE_PRICE_ANNUAL=price_replace_annual