summaryrefslogtreecommitdiff
path: root/.env.example
diff options
context:
space:
mode:
authorBertrand Yuan <bert.yuan@outlook.com>2025-12-16 00:25:04 +0800
committerGitHub <noreply@github.com>2025-12-16 00:25:04 +0800
commit39c83fbb69ef06d2d56790d75abc254ba7e34394 (patch)
treedd006593448c3500bdcb414af3b4656f7a7683d4 /.env.example
parent48b07bc308a35734a6a7a305c8fdccbfa47de7d8 (diff)
parent785371bb3eccca455e5ce5fccbe9b6e3752a03f6 (diff)
Merge pull request #1 from bertyuan/feat-introduce-payloadv1.0
Feat: introduce payload
Diffstat (limited to '.env.example')
-rw-r--r--.env.example50
1 files changed, 12 insertions, 38 deletions
diff --git a/.env.example b/.env.example
index bd6faec..6fabc18 100644
--- a/.env.example
+++ b/.env.example
@@ -1,47 +1,21 @@
-# Since the ".env" file is gitignored, you can use the ".env.example" file to
-# build a new ".env" file when you clone the repo. Keep this file up-to-date
-# when you add new variables to `.env`.
-
-# This file will be committed to version control, so make sure not to have any
-# secrets in it. If you are cloning this repo, create a copy of this file named
-# ".env" and populate it with your secrets.
-
-# When adding additional environment variables, the schema in "/src/env.js"
-# should be updated accordingly.
-
# Database URL
-# The database URL is used to connect to your database. It's used for commenting, and authentication.
-DATABASE_URL="postgresql://postgres:<YOUR_PASSWORD>@localhost:5432/blog"
+DATABASE_URL="postgresql://username:password@localhost:5432/blog"
+
+# Payload CMS (generate a random secret)
+PAYLOAD_SECRET="your-random-secret-key-here"
+NEXT_PUBLIC_SERVER_URL="http://localhost:3000"
-# Resend
-# Used for the newsletter subscription and sending emails.
-# @see https://resend.com
-RESEND_API_KEY="" # Resend API key
-RESEND_AUDIENCE_ID="" # Newsletter audience ID
-EMAIL_FROM="blog@example.com" # Email address to send emails from
+# Resend (optional, for email)
+RESEND_API_KEY=""
+RESEND_AUDIENCE_ID=""
+EMAIL_FROM="blog@example.com"
# Authentication
-# You can generate the secret via 'openssl rand -base64 32' on Unix
-# @see https://www.better-auth.com/docs/installation
-BETTER_AUTH_URL=""
-BETTER_AUTH_SECRET=""
+BETTER_AUTH_URL="http://localhost:3000"
+BETTER_AUTH_SECRET="your-random-auth-secret-here"
-# Preconfigured Google OAuth provider, works out-of-the-box
-# @see https://www.better-auth.com/docs/authentication/google
+# OAuth (optional)
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
-
-# Preconfigured Github OAuth provider, works out-of-the-box
-# @see https://www.better-auth.com/docs/authentication/github
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""
-
-# Analytics
-# Using Umami
-# @see https://umami.is
-NEXT_PUBLIC_UMAMI_URL="" # URL of your Umami instance
-NEXT_PUBLIC_UMAMI_WEBSITE_ID="" # Website ID of your Umami instance
-
-# Production URL
-# Used for the newsletter and site metadata generation.
-VERCEL_PROJECT_PRODUCTION_URL=""