---
title: "v1.8.9"
description: "systhema upgrade no longer drops Admin components from the Payload import map when the production environment is missing."
url: https://docs.systhema.app/changelog/v1.8.9
version: changelog
docs_index: https://docs.systhema.app/llms.txt
---

## Highlights

`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 intact

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.

## Upgrade

Load the production environment, then run the upgrade and check the project.

```bash
systhema upgrade
systhema doctor
```

If 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`](../cli/upgrade.md).

## Changes

- fix(cli): restore Payload files when an upgrade drops imports (#1567) (bdff90fc06)

## Packages affected

`@systhemaui/cli`. The other packages receive the same version.
