Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .dev.vars.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Server values for the Worker. Copy to .dev.vars for local dev, and set
# them on the deployed Worker with `bunx wrangler secret put <NAME>`.
# `bun run cf-typegen` reads this file to type `env` and `process.env`.
BETTER_AUTH_SECRET=

# Optional: Google sign-in
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

# Optional: Polar billing
POLAR_ACCESS_TOKEN=
POLAR_WEBHOOK_SECRET=
POLAR_SERVER=production
POLAR_CREATE_CUSTOMER_ON_SIGN_UP=false
POLAR_PRO_MONTHLY_PRODUCT_ID=
POLAR_PRO_YEARLY_PRODUCT_ID=

# Optional
ADMIN_EMAIL=
CHROME_EXTENSION_ID=
22 changes: 6 additions & 16 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
TURSO_DATABASE_URL=
TURSO_AUTH_TOKEN=
BETTER_AUTH_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
CHROME_EXTENSION_ID=
POLAR_ACCESS_TOKEN=
POLAR_WEBHOOK_SECRET=
POLAR_SERVER=production
POLAR_CREATE_CUSTOMER_ON_SIGN_UP=false
POLAR_PRO_MONTHLY_PRODUCT_ID=
POLAR_PRO_YEARLY_PRODUCT_ID=
ADMIN_EMAIL=

# Client-exposed (inlined at build by Vite)
VITE_APP_URL=https://minimal.so
# Client values. Vite puts them into the browser bundle at build time.
VITE_APP_URL=http://localhost:3000
VITE_CHROME_EXTENSION_ID=
VITE_DEFAULT_BILLING_CYCLE=yearly
VITE_POLAR_DISCOUNT_ID=

# drizzle-kit only (`bun run db:studio`). Not a Worker secret.
# Use an API token with D1 Edit permission.
CLOUDFLARE_D1_TOKEN=
5 changes: 5 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Public values for `vite build`. Vite puts them into the browser bundle.
# Set every client key here, because `vite build` also reads `.env`.
VITE_CHROME_EXTENSION_ID=mldibjljgpjeincabnhhmcgomohffijf
VITE_DEFAULT_BILLING_CYCLE=yearly
VITE_POLAR_DISCOUNT_ID=
18 changes: 5 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
# testing
/coverage

# next.js
/.next/
/out/

# production
/build

Expand All @@ -32,27 +28,25 @@ yarn-error.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel
!.env.production

# cloudflare / vite build output
/dist
/.output
.wrangler/
.dev.vars
.dev.vars.*
!.dev.vars.example

# typescript
*.tsbuildinfo
next-env.d.ts

# prisma
prisma/generated

# sqlite
*.db*

# database dumps (drizzle/*.sql migrations stay tracked)
/*.sql

.vscode

# AI / editor tooling
Expand All @@ -70,8 +64,6 @@ prisma/generated

.ami/

# local avatar uploads
/public/uploads/avatars/
# Nightshift plan artifacts (keep out of version control)
.nightshift-plan
CLAUDE.md
Expand Down
Loading
Loading