Skip to content

Missing support for runtime environment variables (--env)Β #398

Open
@aldenquimby

Description

@aldenquimby

🐞 Describe the bug
My team needs to pass runtime environment variables to vercel deploy: https://vercel.com/docs/cli/deploy#env

πŸ“š To Reproduce
Attempt to add --env using this action.

πŸ’‘ Expected behavior
It is possible.

πŸ–ΌοΈ Screenshots
It is not currently possible.

βš™οΈ Environment
Action version: v1.10.0

πŸ“‹ Additional context
Our work-around is to add BUILD_ENV instead, and then use next.config.js to make certain vars available at runtime, e.g.

// pass build env through to runtime until deploy-to-vercel-action adds support for --env
env: {
  NEXT_PUBLIC_ID1: process.env.NEXT_PUBLIC_ID1,
  NEXT_PUBLIC_ID2: process.env.NEXT_PUBLIC_ID2,
  ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions