* Do not haphazardly change the name of this file, users that do not have ignore
* listing configured will see the name of this source file in chrome devtools console
*/
exporttypeLogMethod=
exporttypeLogMethod=
|'log'
|'log'
|'info'
|'info'
...
@@ -93,13 +97,11 @@ export function patchConsoleMethod<T extends keyof Console>(
...
@@ -93,13 +97,11 @@ export function patchConsoleMethod<T extends keyof Console>(
wrapper(methodName,...args)
wrapper(methodName,...args)
/*
/*
* This script is from Next.js console patching.
* Your console call is being intercepted by Next.js, which makes your dev tools show the wrong source location.
*
*
* You're seeing this because Next.js patches console methods to send logs
* To see the true source location of the console method call, you can do one of the following:
* to your terminal.
* - open your browser's DevTools before the log happens (ensure you have ignore listing on https://developer.chrome.com/docs/devtools/settings/ignore-list)
*
* - set browserDebugInfoInTerminal to false in your next.config file.
* To see the original location, set browserDebugInfoInTerminal to false