Skip to Content
Octopus Energy Packages

Vercel projects

How oe.env resolves Vercel project names

When a --vercel target does not include an explicit project name, the tool resolves the Vercel project automatically.

Resolution order

Each Vercel target resolves its project independently. The project is resolved from:

  1. The explicit project in --vercel=<project>:<env>
  2. OE_ENV_VERCEL_PROJECT for that source environment
  3. .vercel/repo.json, matched from the current project directory
  4. .vercel/project.json, using the linked project ID

Use --vercel=<project>:<env> to bypass automatic project resolution for that target. Local .env.local values can override OE_ENV_VERCEL_PROJECT for local sync runs.

pnpm oe.env sync --vercel=my-app:preview

Linked Vercel projects

If you do not pass an explicit project name, make sure the repository is linked with the Vercel CLI:

vercel link

The sync command validates that the Vercel CLI is installed and authenticated before syncing variables. If an explicit Vercel project does not match the source package's implicit project, or cannot be checked against one, the command asks for confirmation before writing. Dry runs show this warning without prompting.

On this page