Admin login
Enter the admin password: the ADMIN_TOKEN secret. You set it in the Cloudflare dashboard under your Worker → Settings → Variables and Secrets.
One-time database upgrade
This version of the site needs a few new things in your D1 database:
- a sold date for each car,
- photo galleries (up to 8 photos per car, with small thumbnails),
- a list of backups and a storage meter.
Your cars and posts stay exactly as they are. The upgrade runs as one transaction: it either fully works, or changes nothing.
Photo uploads are off: the Worker has no KV namespace binding named IMAGES.
| Car | Price | Status | Updated |
|---|
Before posting someone's photo and name, ask them first (a WhatsApp "yes" is enough) and keep their reply.
Photo storage
Your own copy
Download a backup about once a month and keep it in Google Drive or on your computer. This copy is yours forever, even if something happened to the Cloudflare account.
Nightly job
Every night the Worker saves a backup in Cloudflare (daily ones kept 30 days, weekly 1 year, monthly forever), shrinks old sold cars' photos and cleans up unused photos.
Sold cars' photos
After a car has been sold for a while, keep only one small picture of it and free up the space of its other photos.
Saved backups
Restore replaces all cars and loyal posts with the backup. A safety backup of the current data is saved first, so a restore can be undone.
| Saved | Type | Cars | Posts | Size |
|---|