-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to disable logging when using makeEnvPublic #108
Labels
Comments
@gregorybolkenstijn, this would be a great addition! Happy to review a pull request for this. |
HofmannZ
added
enhancement
New feature or request
good first issue
Good for newcomers
labels
Mar 26, 2024
I cloned the repo but didn't find the code for it. Anyway, maybe you should try conditional logging. Instead of completely disabling the log, you can get env variables to conditionally log only during development. Like this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
makeEnvPublic
innext.config.js
:It logs
✓ Prefixed environment variable 'API_BASE_URL' (next-runtime-env)
on every server start. Both in local development mode and on production environments this creates a lot of (duplicate) noise in the logs. An option to disable this would be a nice and simple addition:The text was updated successfully, but these errors were encountered: