Skip to content

env-vars behaves as build-args by design. #22343

@skrhlm

Description

@skrhlm

What version of Next.js are you using?

10.0.7

What version of Node.js are you using?

14.x

What browser are you using?

Chrome

What operating system are you using?

MacOs

How are you deploying your application?

Kubernetes

Describe the Bug

Simply put the env-vars act as build-args, it is not possible to do any override of env-variables in runtime.

Expected Behavior

Env-vars ( when not using export ) should not be bundled, but updatable through the environment in runtime.

To Reproduce

I've made a repository showcasing the frustration
https://github.com/skrhlm/NEXT-JS-ENV-VARS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions