Weeks before
Prepare everything, switch nothing.
- A new backend on a host you control, with an IP allowlist and expiring access tokens from day one, which are the two things Shopify now requires anyway.
- A copy of the database, plus a live one-way sync from Gadget into it. The app keeps running on Gadget and the new database keeps up, so on switch day there is nothing left to copy.
- Each store's access to the app moved over with the data, so background work such as order sync keeps running without asking merchants to open the app again.
- Checkout blocks, theme blocks and storefront links that talk to the Gadget server rebuilt to talk to the new one, and held back for the release.
- A new app version prepared but not released, carrying the new app address, the new webhook address and the rebuilt blocks. Releasing it is the whole switch, and rolling back starts with selecting the previous version.
- Logging and alerts on the new backend before anything is switched, on the server and in the browser for the checkout blocks and app screens.
- A rollback path, built and tested before the switch: the mechanism that re-registers the original webhooks, and the same sync prepared to run in the other direction, from the new database back into Gadget.
- A full rehearsal on a development store, switch and rollback both, timed, with our QA team testing the app end to end.



