Changelog
All notable changes to the wedding_website project will be documented in this file.
The format is based on Keep a Changelog 1.1.0, and this project adheres to Semantic Versioning 2.0.0.
Release entries distinguish between:
- 🚀 Application Changes
- 🗄️ Schema Changes
- ⚙️ Configuration Changes
- 🐳 Deployment & Infrastructure Changes
- ⚠️ Breaking Changes & Migration Guide
[Unreleased]
Adopter Action Required: Yes (Database schema migrations, production 64-byte scrypt and session secret hardening, and Docker Compose
:?secret guards required)
🚀 Application Changes
- Implemented comprehensive downstream upgrade strategy (
docs/upgrading.md) covering Docker Compose, standalone Docker, and host Node.js workflows, alongside semantic versioning and release governance (docs/versioning.md). - Added a read-only local environment preflight CLI (
scripts/preflight-env.ts,npm run preflight:env) supportingdotenv -ccascade discovery (.env.<mode>.local,.env.local,.env.<mode>,.env) and--mode development|productionvalidation againstsrc/env.tssecret blocklists and Docker Compose:?secret guards without printing raw secret values or connection URLs. - Upgraded full-database JSON backups via
BACKUP_SCHEMA_VERSIONinsrc/app/api/admin/maintenance/export/route.tstoschemaVersion: "2.0"(BACKUP_SCHEMA_VERSION = '2.0'), streaming cursor-chunked exports across all 18 domain Prisma models (excluding ephemeralAuthLockoutrows) while redacting raw messaging/server secrets and preserving backward-compatible1.0and legacy2.0backup imports. - Added an external partner store registry directory (
ExternalRegistry,/api/registry/stores,/api/admin/external-registries) allowing couples to link Amazon, Target, Crate & Barrel, Williams Sonoma, and custom store registries directly without product scraping. - Added persistent per-event dress code guidance (
SubEvent.attireRules), venue timezone labels, and address lookup inSubEventEditorModal, while gatingAddToCalendarcontrols andGET /api/schedule/[id]/icsdownloads on scheduledstartTimevalues (422) andshowAddToCalendar/modules.addToCalendarsettings (404). - Hardened authentication rate limiting and proxy-scoped client IP extraction (
src/utils/rateLimit.ts,src/utils/withApiMiddleware.ts), synchronizing failed-attempt-only auth lockouts in PostgreSQL (AuthLockoutwith HMAC-SHA256 hashed IP keys and fail-open memory fallback) while isolating general API quotas per verified session, isolatingPOST /api/guest/recoverper-IP concurrency locks (guest-recover:<ip>) from interactive guest/admin login endpoints, and deferring guest sign-in recovery delivery post-response via Next.jsafter()with targeted PostgreSQLInvitationCodelookups, early identifier/household cooldown checks, and 5-second bounded SMTP/Twilio timeouts. - Added the five-step first-run
SetupWizard, starter sample-data archetypes (isSampletracking), CSV guest-list import wizard, interactive drag-and-drop seating chart, multi-event access matrix and JSONB meal/custom-question RSVPs, RSVP deadline locking, QR-scoped guest photo upload sessions (guest_photo_session) with print-ready QR modal and live gallery auto-approval (/api/admin/photos/qr), cash funds with Stripe Elements checkout and fee coverage (/api/registry/webhook/stripe), shipping/order/refund lifecycle tracking, configurable registry access/shipping disclosure tiers with multi-item Claim & Fulfillment Hub (/guest/claim), and scheduled email/SMS guest broadcasts (/api/cron/broadcasts).
🗄️ Schema Changes
- Applied post-
0.1.0Prisma migrations inprisma/migrations/(through20261202000000_add_sub_event_attire_rules), expandingprisma/schema.prismaandAppConfig:- New Models:
SeatingTable(20261007000000_add_seating_table),SubEvent,SubEventAccess, andSubEventRsvp(20261019000000_add_sub_event_access_matrix,20261120020000_add_rsvp_meals_and_questions_jsonb,20261202000000_add_sub_event_attire_rules),HouseholdMemberandSubEventMemberRsvp(20261125000000_add_household_members_and_member_rsvps,20261201000000_backfill_household_roster_parity),ExternalRegistry(20261130000200_add_external_registries),BroadcastMessageandBroadcastRecipient(20261023000000_add_broadcast_messaging,20261027000000_add_broadcast_scheduled_for), plusAuthLockout(20261123000000_add_auth_lockout). AppConfigAdditions: AddedcontactEmail,photoAlbumUrl, guest photo QR and moderation controls (autoApproveGuestPhotos,guestPhotoQrTokenVersionin20261123000000_add_guest_photo_qr_and_auto_approve), theme and brand media tokens (themePreset,themeTokens,brandMonogram,brandLogoUrl,brandLogoAlt,heroImageUrl,heroImageAlt,brandWatermarkUrl,brandWatermarkAlt,badgeGraphicUrl,badgeGraphicAlt), layout tokens (layoutContainerMaxWidth,layoutGridGap,layoutCardPadding,layoutBorderRadius), persisted featuremodulesJSON (20261120010000_add_appconfig_modules), RSVP lock settings (rsvpOpen,rsvpDeadlineDate,rsvpGracePeriodHours,rsvpClosedMessagein20261119000000_add_rsvp_deadline_and_lock), outbound email/SMS delivery settings (emailProvider,smtp*,resend*,sendgrid*,smsProvider,twilio*,broadcastBatchSize,broadcastBatchDelayMs), registry shipping address fields (shipping*in20261121000000_add_registry_shipping_and_order_tracking), default cash-fund payment handles (defaultPaymentHandleType,defaultPaymentHandle), configurable registry access tiers and physical hold limits (registryGiftAccessTier,shippingDisclosureTier,maxPendingReservationsin20261124000000_add_registry_access_tiers_and_hold_limits), and resumable onboarding setup completion state (setupCompletedin20261123010000_add_appconfig_setup_completed).- Guest, Registry & Logistics Additions: Added
WeddingPartySideenum andsideonWeddingPartyMember; hotel block fields (promoCode,bookingUrl,roomRate,cutoffDate,shuttleInfo) onAttraction; postal address, plus-one names,householdName,partyGroup, GIN-indexedpartyTags, B-tree-indexedemail(20261130000000_add_invitation_code_email_index) andguestName(20261130000100_add_invitation_code_guest_name_index),extraFields, and seating assignment (tableId,seatNumber,plusOneSeatNumbersin20261123020000_add_plus_one_seat_numbers) onInvitationCode; cash-funditemType/paymentHandle*,isMostWanted,displayOrder, and requiredimageIdforeign key (20261122010000_reconcile_schema_migration_drift,20261123000000_reconcile_schema_drift_and_registry_media_contract) onRegistryItem; thank-you tracking, contributor postal address & thank-you email timestamp (20261123000000_add_contributor_address_and_email_sent_at),message,coverFee/feeAmount, uniquestripePaymentIntentId/stripeChargeId/transactionTimestamp(20261116000000_add_stripe_transaction_fields,20261120000000_unique_stripe_payment_intent_id), notification timestamps, order/carrier tracking, andrefundedAmount/status(20261122000000_add_contributor_lifecycle_and_refunds) onContributor;isSampleflags across sample-capable models; and composite/foreign-key indexes (20261116010000_add_composite_and_fk_indexes,20261122010000_add_content_node_type_created_at_indexonContentNode(type, createdAt DESC)).
- New Models:
⚙️ Configuration Changes
- Added 7 environment variables to
envSchemainsrc/env.ts(21 runtime schema keys total, documented in.env.example):GUEST_SESSION_SECRET: Dedicated HMAC-SHA256 signing secret forguest_authcookies (required in production, minimum 32 characters, distinct fromGUEST_PASSCODE).RUN_MIGRATIONS: Boolean container startup flag (defaultfalse) instructingdocker-entrypoint.shto executeprisma migrate deployfor standalonedocker rundeployments.TRUST_PROXY: Boolean or non-negative proxy hop count (defaultfalse;1for single-hop Caddy/Nginx/Vercel/Railway/Render,2for two-hop Cloud Run/CDN+LB) enabling trustedX-Forwarded-For/X-Real-IPrate-limit client IP extraction.CRON_SECRET: Optional bearer secret authenticating scheduled/api/cron/broadcastsrequests.STRIPE_SECRET_KEY: Conditional server-side Stripe secret/restricted key (sk_...orrk_...), required wheneverNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYis set.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: Conditional client-side Stripe publishable key (pk_...), required wheneverSTRIPE_SECRET_KEYis set.STRIPE_WEBHOOK_SECRET: Optional Stripe webhook signing secret (whsec_...) for/api/registry/webhook/stripe.
- Enforced strict production secret format validators in
src/env.ts:ADMIN_PASSWORDmust use strictscrypt:[16-byte saltBase64]:[64-byte keyBase64]format generated vianode scripts/generate-password-hash.mjs(rejecting plaintext passwords, legacy non-64-byte scrypt hashes, build placeholders, and E2E test hashes whenNODE_ENV=production).GUEST_PASSCODErejects the development fallback (wedding2026),.env.exampleplaceholders, and E2E test passcodes whenNODE_ENV=production.GUEST_SESSION_SECRETrejects defaults, placeholders, E2E test secrets, values shorter than 32 characters, and values matchingGUEST_PASSCODE.STRIPE_SECRET_KEYandNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYmust be paired together and reject mock placeholder keys outsidetest, whileS3_BUCKET,S3_REGION,S3_ACCESS_KEY_ID, andS3_SECRET_ACCESS_KEYremain an all-or-nothing credential group.
- Updated
ModuleConfigSchemainsrc/lib/modules.tsto persist 9 feature toggles (registry,groupGifting,weather,weddingParty,attractions,gallery,countdown,addToCalendar,interactive3D) inAppConfig.modules, retiring the legacyguestPasscodetoggle so guest authentication is enforced consistently viaGUEST_PASSCODEandGUEST_SESSION_SECRET.
🐳 Deployment & Infrastructure Changes
- Hardened
docker-compose.ymlfor production VPS self-hosting:- Enforced mandatory
:?Compose secret guards with zero fallback defaults forDB_PASSWORD,ADMIN_PASSWORD,GUEST_PASSCODE, andGUEST_SESSION_SECRET(isolating disposable CI defaults inside.env.cianddocker-compose.ci.yml). - Added a dedicated one-shot
migrationservice executing./node_modules/.bin/prisma migrate deployoffline (restart: "no") beforeappstarts (condition: service_completed_successfully), scoping container PostgreSQL overrides identically acrossmigration,app, andapp-standbyvia${CONTAINER_DATABASE_URL:-...}and${CONTAINER_POSTGRES_URL_NON_POOLING:-}so host@localhost:5432DATABASE_URLandPOSTGRES_URL_NON_POOLINGvalues never leak into containers, and settingNODE_ENV: production,RUN_MIGRATIONS: ${RUN_MIGRATIONS:-false},E2E_TEST: ${E2E_TEST:-false}, andHOSTNAME: "0.0.0.0"onappalongside full 21-variable runtime forwarding. - Enforced
read_only: true,cap_drop: [ALL],security_opt: [no-new-privileges:true],init: true, writabletmpfsmounts (/tmpand/app/.next/cache), loopback host port bindings (127.0.0.1:${DB_PORT:-5432}:5432and127.0.0.1:${PORT:-3000}:3000), built-in/api/livecontainerhealthcheck, and persistent named volumesdb_dataanduploads_data(/app/public/uploads).
- Enforced mandatory
- Updated
Dockerfile(node:22-bookworm-slimdigest-pinned build stages and minimaldebian:bookworm-slimdigest-pinned runner with strippednodeand zeronpm/npx/corepack/yarn) anddocker-entrypoint.shwith an isolated/opt/prisma-clistage linked to/app/node_modules/.bin/prisma,/usr/bin/tiniPID 1 entrypoint,/api/liveHEALTHCHECK,DATABASE_URLandPOSTGRES_URL_NON_POOLINGURI normalization/preservation, and opt-inRUN_MIGRATIONS=truestartup migrations for standalone containers. - Extended
scripts/verify-deployment-runbooks.ts(npm run check:runbooksin.github/workflows/ci.ymlandscripts/check-quality.ts) to fail pull requests with actionable remediation hints when schema migrations,src/env.tskeys, module toggles, backup schema versions, or Docker Compose guards drift fromCHANGELOG.mdanddocs/upgrading.md. - Updated PR template (
.github/pull_request_template.md) and contributing guide (.github/CONTRIBUTING.md) with release categorization and adopter action tracking. - Exempted stateless read-only (
GETandHEAD) probe requests to/api/live,/api/health, and/api/readyinsrc/middleware.tsfromALLOWED_HOSTSdomain matching while enforcing syntacticHostvalidation (isHostSyntaxValidinsrc/utils/hostValidation.ts) andCache-Control: no-store, simplifying loopback container/api/livehealthchecks acrossDockerfile,docker-compose.yml, anddocker-compose.rollout.yml.
⚠️ Breaking Changes & Migration Guide
- Back Up Data & Tag Rollback Image:
- Export a full-database JSON backup from
/admin/dashboard/maintenance(Export All Data,schemaVersion: "2.0"— legacy"1.0"exports also remain importable) and/or runpg_dumpagainst PostgreSQL. - On container hosts, tag the currently running image before pulling or rebuilding:
docker tag wedding-website:latest wedding-website:previous.
- Export a full-database JSON backup from
- Populate Mandatory Production & Compose Secrets in
.env:- Regenerate
ADMIN_PASSWORDif using a plaintext value or legacy non-64-byte scrypt hash:node scripts/generate-password-hash.mjs "your-strong-password". - Set non-placeholder values for
GUEST_PASSCODE(cannot bewedding2026) andGUEST_SESSION_SECRET(at least 32 characters and distinct fromGUEST_PASSCODE, e.g.,openssl rand -hex 32). - Set
DB_PASSWORDin.envwhen usingdocker-compose.yml(DB_PASSWORD,ADMIN_PASSWORD,GUEST_PASSCODE, andGUEST_SESSION_SECRETenforce mandatory${VAR:?...}guards). - If enabling Stripe card checkout, configure both
STRIPE_SECRET_KEYandNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYtogether (plusSTRIPE_WEBHOOK_SECRETfor/api/registry/webhook/stripe); setTRUST_PROXY=truewhen running behind Caddy or Nginx.
- Regenerate
- Remove Retired
guestPasscodeModule Override Keys:- If you customized
AppConfig.modulesJSON manually, remove any obsoleteguestPasscodeboolean property (ModuleConfigSchemanow persists the 9 supported feature toggles and strips unknown keys).
- If you customized
- Run Local
.envPreflight Before Restarting:- Run
npm run preflight:env -- --mode production(npx tsx scripts/preflight-env.ts --mode production --env-file .env, or add--no-composefor non-Compose host/standalone.envfiles) and resolve any reported secret or guard issues.
- Run
- Apply Forward-Only Migrations & Restart:
- Docker Compose: Run
docker compose up -d --build(preservesdb_dataanduploads_datanamed volumes while running the one-shotmigrationservice beforeapp; never rundocker compose down -vin production). - Standalone Docker: Run with
-e RUN_MIGRATIONS=true(or execute./node_modules/.bin/prisma migrate deployone-shot first) and mount persistent/app/public/uploadsstorage. - Host Node.js: Run
npm ci && npm run migrate:deploy && npm run prisma:generate && npm run build, then restartnpm start(seedocs/upgrading.mdfor full track-by-track commands and rollback steps).
- Docker Compose: Run
[0.1.0] - 2026-09-15
Adopter Action Required: Yes (Initial setup and database migration)
🚀 Application Changes
- Initial release of the customizable wedding website template with App Router UI, interactive 3D heart scene, registry management, RSVP system, and admin dashboard.
🗄️ Schema Changes
- Created initial Prisma database schema (
prisma/schema.prisma) includingAppConfig,Media,WeddingPartyMember,Attraction,RegistryItem,Contributor,InvitationCode,ContentNode, andSnapshotVersion.
⚙️ Configuration Changes
- Added central Zod
AppConfigSchemaand environment variable validation schema (src/env.ts).
🐳 Deployment & Infrastructure Changes
- Containerized setup with
Dockerfile,docker-compose.yml, anddocker-entrypoint.sh.