-
|
We have a {
"scripts": {
"dev": "next | pino-pretty -t -c -s \"level > '30'\""
}The Vs. plain Is it |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
BTW, some other CLIs have explicit flags for these situations, e.g., I didn't find anything in the source codes of Next.js that would be detecting tty (except this single thing, which seems unrelated), but maybe it has to be supported explicitly. |
Beta Was this translation helpful? Give feedback.
-
|
The solution: -"dev": "next | pino-pretty -t -s \"level > '30'\"",
+"dev": "FORCE_COLOR=true next | pino-pretty -t -c -s \"level > '30'\"",
|
Beta Was this translation helpful? Give feedback.


The solution:
FORCE_COLORis an env var for chalk that Next.js uses.