Skip to content
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

chore(logging): Disable info logging of critters in production #62776

Merged
merged 6 commits into from Apr 26, 2024

Conversation

jonluca
Copy link
Contributor

@jonluca jonluca commented Mar 3, 2024

Critters uses the info logLevel by default. This means that when you enable the experimental optimizeCss property, your production logs will be polluted with their logs

This sets the log level to warn by default in production, and allows configuration via an environment variable

CleanShot 2024-03-02 at 18 12 46@2x

@jonluca
Copy link
Contributor Author

jonluca commented Mar 8, 2024

@ijjk @timneutkens this is a small change but one that would be a great quality of life for us (and anyone that uses tailwind + SSR + nextjs) to clean up our production logging. Would appreciate a review, or any comments

@timneutkens
Copy link
Member

Looks good to me to land 👍

@timneutkens
Copy link
Member

Probably important to know: that experimental flag was discontinued and is no longer being worked on, it'll likely be removed in the near future.

@jonluca
Copy link
Contributor Author

jonluca commented Apr 23, 2024

Thanks!

Really? That flag is what enables SSR to work properly for tailwind apps in pages mode. You get a flash of unstyled content otherwise. Is there a preferred way of solving that?

I opened this discussion #62777 to ask if there was some way of doing this in userland pre response but I don't think there is.

@ijjk ijjk merged commit 5449196 into vercel:canary Apr 26, 2024
74 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants