Skip to content
Merged

Dev #10

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
17 changes: 17 additions & 0 deletions .dev.vars.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Local Workers preview vars, read by `opennextjs-cloudflare preview`.
# Copy to .dev.vars and fill in. .dev.vars is gitignored; this template is committed.

NEXTJS_ENV=development

# Public store URL for local preview
NEXT_PUBLIC_SITE_URL=http://localhost:3000

# Supabase Auth — client-safe (publishable key is meant for the browser)
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=

# Telegram order notifications — server-only secrets.
# TELEGRAM_BOT_TOKEN: from @BotFather (e.g. 123456789:ABCdef...).
# TELEGRAM_CHAT_ID: target group chat id (negative for groups, e.g. -1001234567890).
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Supabase — client-safe (exposed to the browser)
NEXT_PUBLIC_SUPABASE_URL=
# New-style key (used by the app). Format: sb_publishable_...
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=
# Legacy key — kept as a placeholder for any future server-side tooling that still expects it.
NEXT_PUBLIC_SUPABASE_ANON_KEY=

# Supabase — server-only. NEVER import into client components.
Expand Down
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,23 @@
/.open-next/
/.wrangler/
.dev.vars
!.dev.vars.example

# production
/build

# misc
.DS_Store

# secrets / credentials — never commit keys, certs, or service-account files
*.pem
*.key
*.p12
*.pfx
*.crt
*-key.json
service-account*.json
gha-creds-*.json

# debug
npm-debug.log*
Expand All @@ -52,3 +62,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# supabase CLI scratch
/supabase/.temp/
Loading