ST-cmovs7e3o: web-push dependency + VAPID env vars feature-gated
Voeg web-push + @types/web-push toe aan package.json. Registreer NEXT_PUBLIC_VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY, VAPID_SUBJECT en INTERNAL_PUSH_SECRET als .optional() in lib/env.ts. Documenteer alle vier in .env.example en README. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2b1da9f5c4
commit
2f5ea553bc
5 changed files with 127 additions and 166 deletions
10
.env.example
10
.env.example
|
|
@ -15,6 +15,16 @@ NODE_ENV="development"
|
|||
# Generate with: openssl rand -base64 32
|
||||
CRON_SECRET=""
|
||||
|
||||
# PBI-55 — Web Push (VAPID). All optional; app starts without these.
|
||||
# Generate keys with: npx web-push generate-vapid-keys
|
||||
NEXT_PUBLIC_VAPID_PUBLIC_KEY=""
|
||||
VAPID_PRIVATE_KEY=""
|
||||
# Must start with mailto: e.g. mailto:admin@example.com
|
||||
VAPID_SUBJECT="mailto:admin@example.com"
|
||||
# Shared secret for POST /api/internal/push/send — min 32 chars
|
||||
# Generate with: openssl rand -base64 32
|
||||
INTERNAL_PUSH_SECRET=""
|
||||
|
||||
# v1-readiness item 2 — Sentry error monitoring.
|
||||
# Optional. Without DSN, the SDK is a no-op (no network, no overhead).
|
||||
# Get a DSN at https://sentry.io → Project → Settings → Client Keys (DSN).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue