vercel
next.js
BlogDocsChangelog

Exclude `next-js` condition from middleware, proxy, and instrumentation

#85321Merged
Comparing
gnoff:refine-next-js-condition
(
2718ee4
) with
canary
(
8cdd4ea
)
CodSpeed Performance Gauge
0%
Untouched
8
Skipped
12

Benchmarks

Skipped (12)

hmr_updates_medium_10
crates/next-api/benches/hmr.rs
IgnoredSkipped
17.2 µs*
hmr_updates_large_20
crates/next-api/benches/hmr.rs
IgnoredSkipped
16.9 µs*
hmr_updates_small_5
crates/next-api/benches/hmr.rs
IgnoredSkipped
16.8 µs*
build[shiki]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
Skipped
5.5 s*
build[date-fns-all]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
Skipped
2.3 s*
build[framer-motion-all]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
Skipped
3.1 s*
build[date-fns-single]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
Skipped
1.4 s*
build[framer-motion-single]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
Skipped
2.2 s*
build[joy]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
Skipped
2.1 s*
build[lucide-react-all]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
Skipped
8.7 s*
build[lucide-react-single]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
Skipped
950 ms*
build[mui]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
Skipped
3.2 s*

Passed

react-dom-client.development.js[tracing]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
+1%
407.6 ms404.3 ms
packages-bundle.js[full]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
1.3 s1.3 s
app-page-turbo.runtime.prod.js[full]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
779.3 ms778.7 ms
packages-bundle.js[tracing]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
1.1 s1.1 s
jsonwebtoken.js[full]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
367.7 ms367.7 ms
react-dom-client.development.js[full]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
463 ms463.4 ms
jsonwebtoken.js[tracing]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
325.2 ms325.5 ms
app-page-turbo.runtime.prod.js[tracing]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
668.6 ms669.4 ms

Commits

Click on a commit to change the comparison range
Base
canary
8cdd4ea
+0.08%
Exclude `next-js` condition from middleware, proxy, and instrumentation These scopes aren't fully Next.js environments and can't access many Next.js APIs. In the future this might change but for now we will exclude the `next-js` condition when bundling for these entrypoints so that 3rd parties that target Next.js can do so with the expectation that regardless of what environment they are running in the full suite of Next.js libraries they support will work.
2718ee4
6 days ago
by gnoff
© 2025 CodSpeed Technology
Home Terms Privacy Docs