Skip to content

Pipe next dev into pino-pretty and keep colorized output? #11174

Answered by borekb
borekb asked this question in Help
Discussion options

You must be logged in to vote

The solution:

-"dev": "next | pino-pretty -t -s \"level > '30'\"",
+"dev": "FORCE_COLOR=true next | pino-pretty -t -c -s \"level > '30'\"",

FORCE_COLOR is an env var for chalk that Next.js uses.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by borekb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant