This repository was archived by the owner on Jan 29, 2025. It is now read-only.
forked from mickasmt/next-saas-stripe-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.example
112 lines (98 loc) · 5.9 KB
/
.env.example
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# ::: APP CONFIGURATION :::
# This is for Next Auth. Set in your package.json. It might be similar to NEXTAUTH_URL.
# Note: We use http://localhost:3001, but http://localhost:3000 is also fine.
NEXT_PUBLIC_APP_URL=http://localhost:3000
# ::: AUTHENTICATION :::
# Configure social logins with Discord and Google. Use GitHub for repository stars.
# Need a Next Auth secret? Create one here: https://generate-secret.vercel.app/64
# Check out Clerk's docs for setup guides: https://clerk.com/docs/authentication/social-connections/{discord, google, github}
DISCORD_CLIENT_ID="YOUR_DISCORD_CLIENT_ID"
DISCORD_CLIENT_SECRET="YOUR_DISCORD_CLIENT_SECRET"
GITHUB_OAUTH_TOKEN="YOUR_GITHUB_OAUTH_TOKEN"
GOOGLE_CLIENT_ID="YOUR_GOOGLE_CLIENT_ID"
GOOGLE_CLIENT_SECRET="YOUR_GOOGLE_CLIENT_SECRET"
NEXTAUTH_SECRET="YOUR_NEXTAUTH_SECRET"
NEXTAUTH_URL=http://localhost:3000
# ::: ANALYTICS :::
# We use Posthog for product analytics.
# Create a free account at https://posthog.com
# Grab the required keys from https://us.posthog.com/settings/project
# We use the Node SDK with a Next JS Reverse Proxy https://posthog.com/docs/advanced/proxy/nextjs
NEXT_PUBLIC_POSTHOG_KEY="YOUR_NEXT_PUBLIC_POSTHOG_KEY"
NEXT_PUBLIC_POSTHOG_HOST="YOUR_NEXT_PUBLIC_POSTHOG_HOST"
# ::: DATABASE CONFIGURATION :::
# Pick your database - we like Neon, but Vercel or Tembo (https://tembo.io/) are fine choices.
# Once you have your connection string, you'll need the direct url and a pooled connection string for Prisma. For Drizzle, just the direct connection using the serverless driver from Neon.
DATABASE_URL="postgres://default:PASSWORD@database-connection-string-pooler.us-east-1.postgres.vercel-storage.com:5432/verceldb"
POSTGRES_URL_NON_POOLING="postgresql://default:PASSWORD@database-connection-string.us-east-1.postgres.vercel-storage.com:5432/verceldb"
# ::: EMAIL CONFIGURATION :::
# We use Resend.com for emails. Set up an account, get your API key, and you're all set.
RESEND_API_KEY="YOUR_RESEND_API_KEY"
# ::: LEARN :::
# Learn has moved to https://learn.andvoila.gg so we can showcase how creators can use And Voila to build their own learning blogs.
# ::: SOCIAL MEDIA VARIABLES :::
# Add your Twitter handle and website URL here for social media integration.
TWITTER_CREATOR="@RebekahRadice"
TWITTER_SITE="https://andvoila.gg"
# ::: STRIPE SUBSCRIPTIONS :::
# Configure your Stripe subscription products and record the price IDs here.
# STRIPE_API_KEY should be your Stripe Secret Key.
# Include your coupon ID if you have one. The webhook secret enables Stripe to communicate with your app.
NEXT_PUBLIC_STRIPE_BEST_MONTHLY_PRICE_ID="YOUR_NEXT_PUBLIC_STRIPE_BEST_MONTHLY_PRICE_ID"
NEXT_PUBLIC_STRIPE_BEST_YEARLY_PRICE_ID="YOUR_NEXT_PUBLIC_STRIPE_BEST_YEARLY_PRICE_ID"
NEXT_PUBLIC_STRIPE_BETTER_MONTHLY_PRICE_ID="YOUR_NEXT_PUBLIC_STRIPE_BETTER_MONTHLY_PRICE_ID"
NEXT_PUBLIC_STRIPE_BETTER_YEARLY_PRICE_ID="YOUR_NEXT_PUBLIC_STRIPE_BETTER_YEARLY_PRICE_ID"
STRIPE_API_KEY="YOUR_STRIPE_API_KEY"
STRIPE_COUPON_ID="YOUR_STRIPE_COUPON_ID"
STRIPE_WEBHOOK_SECRET="YOUR_STRIPE_WEBHOOK_SECRET"
# ::: WRITE VARIABLES :::
# Vercel auth token: https://vercel.com/account/tokens
# Set up KV variables in Vercel KV or use Upstash/Redis.
# Find your Vercel Project ID here: https://vercel.com/<org>/<project>/settings
# If using a Vercel team, your Team ID is at: https://vercel.com/teams/<org>/settings
# RESERVED_DOMAINS: Add your internal-use domains here in a comma separated values.
# Set NEXT_PUBLIC_ROOT_DOMAIN to your website's root, like 'andvoila.gg'.
# You'll need to set up a Tiptap Pro Account to obtain the Tiptap related variables. Once you do, they're available in the Cloud Dashboard from: https://cloud.tiptap.dev/apps/settings. These are used by the Editor and for real-time collaboration.
AUTH_BEARER_TOKEN="YOUR_AUTH_BEARER_TOKEN"
KV_REST_API_READ_ONLY_TOKEN="YOUR_KV_REST_API_READ_ONLY_TOKEN"
KV_REST_API_TOKEN="YOUR_KV_REST_API_TOKEN"
KV_REST_API_URL="YOUR_KV_REST_API_URL"
KV_URL="YOUR_KV_URL"
NEXT_PUBLIC_ROOT_DOMAIN="YOUR_NEXT_PUBLIC_ROOT_DOMAIN"
PROJECT_ID_VERCEL="YOUR_PROJECT_ID_VERCEL"
RESERVED_DOMAINS="YOUR_RESERVED_DOMAINS"
# ::: TIPTAP PRO VARIABLES :::
# Tiptap Collab Cloud Configuration:
# NEXT_PUBLIC_TIPTAP_COLLAB_APP_ID: Your App ID for Tiptap Collab Cloud. Details at https://cloud.tiptap.dev/apps
# TIPTAP_COLLAB_SECRET: Your App Secret for Tiptap Collab Cloud. More info at https://cloud.tiptap.dev/apps/settings
# NEXT_PUBLIC_COLLAB_DOC_PREFIX: Prefix for your Tiptap Collab Cloud documents. Example: 'doc_'
# Tiptap AI Integration:
# NEXT_PUBLIC_TIPTAP_AI_APP_ID: Your App ID for Tiptap AI. See https://cloud.tiptap.dev/ai-settings
# TIPTAP_AI_SECRET: Your JWT Secret for Tiptap AI. Details at https://cloud.tiptap.dev/ai-settings
# NPM_RC Configuration (Tiptap Pro Extensions):
# More details at https://cloud.tiptap.dev/pro-extensions
#
# Step 1:
# Create a .npmrc file locally with your Tiptap Pro Extensions token. Add this file to .gitignore.
#
# Step 2:
# Set up an NPM_RC environment variable on Vercel. Paste the .npmrc file contents here, ensuring correct formatting with new lines.
#
# OpenAI API Key:
# Obtain your OpenAI API key from https://platform.openai.com/account/api-keys
# Save this key only to the Tiptap Cloud dashboard.
NEXT_PUBLIC_TIPTAP_COLLAB_APP_ID="YOUR_NEXT_PUBLIC_TIPTAP_COLLAB_APP_ID"
TIPTAP_COLLAB_SECRET="YOUR_TIPTAP_COLLAB_SECRET"
NEXT_PUBLIC_COLLAB_DOC_PREFIX="doc_"
NEXT_PUBLIC_TIPTAP_AI_APP_ID="YOUR_NEXT_PUBLIC_TIPTAP_AI_APP_ID"
TIPTAP_AI_SECRET="YOUR_TIPTAP_AI_SECRET"
OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
NPM_RC="YOUR_NPM_RC"
# ::: UPSTASH RATE LIMITING VARIABLES :::
# Create a new Upstash Redis database at https://upstash.com
# h/t to Steven Tey and https://github.com/dubinc/dub for the implementation
RATELIMIT_UPSTASH_REDIS_REST_URL="YOUR_RATELIMIT_UPSTASH_REDIS_REST_URL"
RATELIMIT_UPSTASH_REDIS_REST_TOKEN="YOUR_RATELIMIT_UPSTASH_REDIS_REST_TOKEN"
# ::: PRISMA & DRIZZLE ON NEON VARIABLES :::
PREON_DIRECT_URL="YOUR_PREON_DIRECT_URL"
DREON_DIRECT_URL="YOUR_DREON_DIRECT_URL"