Menu

1 / 3

Environment variables now use Config and Secret types - Vercel

Vercel News·Brooke Mosby·5 days ago
#9xpVuJSF
#vercel#secret#environment#variable#config
Reading 0:00
15s threshold

When you add or edit an environment variable in Vercel, you now choose Config or Secret instead of using the Sensitive toggle. Existing variables marked Sensitive are automatically treated as Secrets and continue to work without migration.

Config: The value remains readable after saving for members with access. Use Config for non-sensitive values you may need to inspect later, such as variables with a public framework prefix.

Secret: The value remains available to your deployments and can be replaced, but members cannot view or retrieve it after saving. Use Secret for passwords, API keys, and tokens.

The Add Environment Variable form, with Secret selected as the type.

You can select an environment or Preview branch for each value. The environment variable list in the dashboard shows each variable’s type and where it applies.

Copy link to heading Team policy changes

The Enforce Sensitive Environment Variables team policy is deprecated with this update.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.