From 378c213c63cd272fde60317738cdb2e90e2f0fbd Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 23 Oct 2024 12:12:06 +0200 Subject: [PATCH] follow-up item to check if codeframes don't use colors in non-tty env --- .../src/client/components/react-dev-overlay/server/shared.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/next/src/client/components/react-dev-overlay/server/shared.ts b/packages/next/src/client/components/react-dev-overlay/server/shared.ts index 7b53e0904a2073..4fede2333ea2c4 100644 --- a/packages/next/src/client/components/react-dev-overlay/server/shared.ts +++ b/packages/next/src/client/components/react-dev-overlay/server/shared.ts @@ -65,6 +65,7 @@ export function getOriginalCodeFrame( column: frame.column ?? 0, }, }, + // TODO: Only in TTY { forceColor: true } ) }