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
740bb53c
Unverified
Commit
740bb53c
authored
Jan 17, 2025
by
Tim Neutkens
Committed by
GitHub
Jan 17, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ping event being sent unintentionally for Pages Router with Turbopack (#75030)
parent
7229934b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
on-demand-entries-client.ts
packages/next/src/client/dev/on-demand-entries-client.ts
+5
-0
No files found.
packages/next/src/client/dev/on-demand-entries-client.ts
View file @
740bb53c
...
@@ -2,6 +2,11 @@ import Router from '../router'
...
@@ -2,6 +2,11 @@ import Router from '../router'
import
{
sendMessage
}
from
'../components/react-dev-overlay/pages/websocket'
import
{
sendMessage
}
from
'../components/react-dev-overlay/pages/websocket'
export
default
async
(
page
?:
string
)
=>
{
export
default
async
(
page
?:
string
)
=>
{
// Never send pings when using Turbopack as it's not used.
// Pings were originally used to keep track of active routes in on-demand-entries with webpack.
if
(
process
.
env
.
TURBOPACK
)
{
return
}
if
(
page
)
{
if
(
page
)
{
// in AMP the router isn't initialized on the client and
// in AMP the router isn't initialized on the client and
// client-transitions don't occur so ping initial page
// client-transitions don't occur so ping initial page
...
...
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