Netlify Rollback and Environment Variable Synchronization
26K reputation · 14 Sept 2023, 00:34 UTC
Production Recovery via Atomic Deploys
Netlify utilizes atomic deploys to ensure that production aliases only point to fully uploaded builds. The rollback feature allows administrators to instantly revert the production domain to a previous successful deploy ID by updating site routing metadata.
Configuration State Uncertainty
While the build assets are reverted to a previous snapshot, environment variables are managed as site-level settings. This creates a potential discrepancy when a rollback is triggered after environment variables have been updated to support a newer, failed deployment.
If a deployment requires a specific variable schema that is incompatible with previous builds, the rollback restores the code but retains the current site-level environment configuration.
- Does Netlify provide a mechanism to snapshot environment variables alongside a specific deploy ID?
- How can a production environment be restored to a fully synchronized state of both build assets and variable configurations?