Skip to content

v4.4.1: ConfigurationError thrown in pipeline as variables are not available on build time #2033

Closed
@jesseflikweerteo

Description

@jesseflikweerteo

Checklist

Description

After upgrading our SDK from v4.4.0 to v4.4.1 our webapp won't build in the pipeline anymore. Our AUTH0_... variables are defined in the Azure App Service (so they're only available in the backend), but not in the build step. We're not planning on adding those non-NEXT_PUBLIC_ variables to the pipeline either, as that might confuse developers since they're not the variables actually used in the webapp; non-NEXT_PUBLIC_ variables are defined in the App Service.

Would it be possible to create a way to disable the validation of variables by e.g. setting a single environment variable, like AUTH0_OVERRIDE_VARIABLE_VALIDATION? Not relevant to this specific issue, but how was this change only a patch instead of a minor version bump?

Reproduction

  1. Try to build your Next 14 WebApp without all required non-NEXT_PUBLIC_ variables (like domain, clientId, appBaseUrl, secret and clientAuthentication)
  2. Notice that building is not possible
  3. Find out that disabling the validation is not possible

Additional context

No response

nextjs-auth0 version

v4.4.1

Next.js version

v14.2.26

Node.js version

v20.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions