Description
Checklist
- The issue can be reproduced in the nextjs-auth0 sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
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
- Try to build your Next 14 WebApp without all required non-
NEXT_PUBLIC_
variables (like domain, clientId, appBaseUrl, secret and clientAuthentication) - Notice that building is not possible
- 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