Google Drive media & backup
Import images from a Drive folder into the media library, and push DB/media backups to Drive — reusing the existing media pipeline and backup dump.
googleDrive adds two Drive (API v3) capabilities on top of the Google Workspace connector: importing images into the media library, and pushing backups to Drive. It depends on mediaLibrary.
Enable it
mediaLibrary is on.googleDrive in /admin/features (runtime)./admin/drive.What it does
- Media import — pulls images from a configured Drive folder into the media library, reusing the existing
MediaAsset+ Vercel Blob pipeline with sha256 de-duplication (no parallel storage path). - Backup to Drive — pushes the logical DB/media backup (reuses
lib/backup/dump.ts) to Drive as an off-Vercel copy.
Scheduled backup
/api/cron/drive-backup runs on a schedule (vercel.json), gated by CRON_SECRET, and no-ops when the flag is off. Admin actions under /admin/drive are requireAdmin-gated. Tools: drive.import_folder, drive.backup_now.
| Flag | googleDrive |
| Tier | runtime (depends on mediaLibrary) |
| Default | off |
| Needs | Workspace connector + Drive scope, CRON_SECRET for the cron |
Fail-soft: with no connection, import/backup no-op. Drive backup complements Backup & restore — it doesn't replace Turso's physical backups.
Google Sheets sync
Two-way sync between a Google Sheet and your product catalog — pull (upsert by SKU, never deletes) and push (clears stale rows), with a CRON_SECRET-gated cron.
Google Docs import
Import a Google Doc as a draft blog post or info page — converted to safe engine markdown (never raw HTML), so shared docs can't carry stored XSS.