Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
c8ee24d8
Commit
c8ee24d8
authored
Aug 22, 2025
by
RobPruzan
Committed by
Jiachi Liu
Sep 10, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarify source file that next.js patches for user
parent
ee7f95c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
log-patch.ts
packages/next/src/next-devtools/shared/log-patch.ts
+13
-0
No files found.
packages/next/src/next-devtools/shared/
forward-logs-shared
.ts
→
packages/next/src/next-devtools/shared/
log-patch
.ts
View file @
c8ee24d8
...
...
@@ -92,6 +92,19 @@ export function patchConsoleMethod<T extends keyof Console>(
)
{
wrapper
(
methodName
,
...
args
)
/*
* This script is from Next.js.
* You're likely here because you thought this script sent an error or warning
* to the console. Next.js patches the console to send logs to your terminal
* output, so this file appears as a source. However, the console call actually
* came from another script.
*
* To remove this script from stack traces, open your browser's DevTools before
* these console calls happen.
*
* Or, to prevent Next.js from patching the console, go to your next.config file
* and set browserDebugInfoInTerminal to false.
*/
originalMethod
.
apply
(
this
,
args
)
}
if
(
originalName
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment