Looks like you’re trying to deploy to a production environment without encryption configured.

Encryption protects sensitive data stored in your Webiny project’s database. Deploying to a production environment without it is a security risk, which is why Webiny blocks the deployment and shows this message.

How to Fix
anchor

1. Set the WEBINY_ENCRYPTION_PASSPHRASE environment variable

Add the following to the .env file at the root of your Webiny project (create one if it doesn’t exist):

Use a strong, randomly generated passphrase. You can generate one with the following command:

Keep this value safe

Once set and deployed, changing the passphrase will make previously encrypted data unreadable. Store it securely (e.g. in a secrets manager) and never commit it to version control.

2. Add <Infra.Encryption> to your project config

Open your webiny.config.ts file and add the <Infra.Encryption> component inside an <Infra.Env.IsProd> block:

Once both steps are complete, re-run your deploy command:

If you still encounter issues, feel free to reach out in our community Slackexternal link.