Files
Niklas MischkulnigandGitHub 944e45484e Add nextConfig.instrumentationClientInject (#93785)
This allows injecting client bootstrap code using only next.config.js
(without writing to any user source files).
2026-05-19 17:58:36 +02:00

9 lines
338 B
JavaScript

window.__INJECT_ORDER = window.__INJECT_ORDER || []
window.__INJECT_ORDER.push('b')
window.__INJECT_B_EXECUTED_AT = performance.now()
export function onRouterTransitionStart(href, navigateType) {
const pathname = new URL(href, window.location.href).pathname
console.log(`[Router Transition Start] [${navigateType}] ${pathname} b`)
}