Unverified Commit 740bb53c authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Fix ping event being sent unintentionally for Pages Router with Turbopack (#75030)

parent 7229934b
......@@ -2,6 +2,11 @@ import Router from '../router'
import { sendMessage } from '../components/react-dev-overlay/pages/websocket'
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) {
// in AMP the router isn't initialized on the client and
// client-transitions don't occur so ping initial page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment