Switch Env

Switch the admin panel between production and development databases, and copy production down

Community 16 505/wk MIT v2.0.2

Installation

pnpm add @whatworks/payload-switch-env

About

Switch Env lets you point your local admin panel at the production database to enter or fix data, then switch back to your development database with one click. Edits made against production do not overwrite the live business data that a clone-and-replace workflow would clobber, such as new orders and form submissions. On SQL databases this works for data only, so the schema has to match on both sides.

The plugin can also copy the production database into development in one click. Upload records keep pointing at files in your production cloud storage, so nothing needs to be synced to disk. Documents created in production stay protected from edits and deletes while you work locally.

Package info

Package name
@whatworks/payload-switch-env
Latest version
2.0.2
Unpacked size
459 kB
License
MIT
Weekly downloads
505
Last publish
Nov 12, 2026

More from what-works-global

View profile

Managed redirects with cache-backed Next.js middleware and an orderable admin list

Role-based access control with a per-collection permissions matrix in the admin panel

Stores a computed path on each page so URLs resolve with one indexed lookup

Audit feed of document changes and user logins across every collection and global

Records who created and last edited each document, with names shown in the admin

Syncs Payload collections to Algolia with draft-aware indexing and admin reindexing

Similar plugins

More in Migration

Adds CSV and JSON import and export to selected collections with background jobs

Stores DNA reference panels and reviewed sample results in Payload collections

Studbook numbers, kinship and inbreeding analysis for managed animal populations

Taxonomy snapshots, imports and a read API for classifications and trees

Fills a Payload test database with realistic, removable sample records

Scheduled and on-demand PostgreSQL backups with selective restore to S3 or Vercel Blob