Rename ONEDRIVE_SYNC_PATH/ONEDRIVE_PHOTOS_PATH env vars #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rename-onedrive-sync-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Renamed two environment variables so their names describe what the app stores there rather than the sync mechanism behind it:
ONEDRIVE_SYNC_PATH→BOOKING_PDF_PATHONEDRIVE_PHOTOS_PATH→UPLOADED_PHOTOS_PATHUpdated every source usage (
pdf-bookings.ts,booking-date.ts,booking-sheet/route.ts,chauffeur/booking-sheet/[id]/route.ts,chauffeur/upload-photos/route.ts— including the user-facing "not configured" error string) and both docs (environment-variables.md,onedrive-sync.md). LeftCHANGELOG.md's historical entries untouched, as those correctly describe what the variable was called at the time.Action required on deploy: rename both variables in production
.env. Both features no-op silently when their variable is unset, so this won't error loudly — booking-PDF generation and chauffeur photo uploads would just quietly stop working.Verified: build/lint clean, 199/199 tests passing (no logic changed, just the variable name), and confirmed live in a running dev server that a booking save picks up
BOOKING_PDF_PATHand writes both PDFs correctly.