v1.8.9
systhema upgrade no longer drops Admin components from the Payload import map when the production environment is missing.
On this page
HighlightsLink to this section
systhema upgrade now protects the Payload import map. An upgrade that would drop Admin components restores the previous files and stops.
Upgrade keeps the Admin import map intactLink to this section
Payload only registers some Admin components when their environment variables are set, for example an AI or storage plugin that needs an API key. An upgrade run without the production environment used to regenerate the import map and types without those components, which breaks the deployed Admin.
When regeneration removes keys from an existing import map, the upgrade now restores the previous import map and any changed Payload types, lists the missing keys and exits with an error. A removal that touches only the types produces a warning.
UpgradeLink to this section
Load the production environment, then run the upgrade and check the project.
systhema upgrade
systhema doctorIf the upgrade stops with missing import map keys, earlier file and dependency updates are already on disk. Load the production environment and retry. If nothing else is left to do, run the two generator commands shown in the error. To apply an intentional removal, run the Payload generators directly and review their diff. See systhema upgrade.
ChangesLink to this section
- fix(cli): restore Payload files when an upgrade drops imports (#1567) (bdff90fc06)
Packages affectedLink to this section
@systhemaui/cli. The other packages receive the same version.