Skip to content

Feature Request: dynamically set environment variables at deploy-time #123

Open
@hughhan1

Description

@hughhan1

Description

CONVEX_DEPLOY_KEY does not seem to provide the necessary authorization to run convex env set. There does not seem to be a way to set environment variables when running on non-user machines (e.g. CI machines). This makes it impossible to dynamically set environment variables.

Even if CONVEX_DEPLOY_KEY provides the necessary authorization to run convex env set, there are still race conditions in which a deployment is successful, but the environment variables have not yet been set.

I'm looking for any solution where a non-user machine can run convex deploy with the ability to dynamically configure environment variables. I saw that convex deploy has the --env-file argument, but this seems to provide the convex deploy command with the environment variables to run the deploy, and not the environment variables to mount onto the deployment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions