Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next Router Middleware Support #3690

Merged
merged 9 commits into from Feb 16, 2023
Merged

Next Router Middleware Support #3690

merged 9 commits into from Feb 16, 2023

Conversation

jridgewell
Copy link
Contributor

@jridgewell jridgewell commented Feb 8, 2023

This updates our Next.js router, passing the edgeInfo manifest generated from the middleware.js file (or any other configured page extension).

Fixes WEB-277
Fixes WEB-370

@vercel
Copy link

vercel bot commented Feb 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
examples-cra-web 🔄 Building (Inspect) Feb 16, 2023 at 3:23AM (UTC)
examples-svelte-web 🔄 Building (Inspect) Feb 16, 2023 at 3:23AM (UTC)
examples-tailwind-web 🔄 Building (Inspect) Feb 16, 2023 at 3:23AM (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 16, 2023 at 3:23AM (UTC)
6 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Feb 16, 2023 at 3:23AM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Feb 16, 2023 at 3:23AM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Feb 16, 2023 at 3:23AM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Feb 16, 2023 at 3:23AM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Feb 16, 2023 at 3:23AM (UTC)
examples-vite-web ⬜️ Ignored (Inspect) Feb 16, 2023 at 3:23AM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2023

Benchmark for 7452089

Test Base PR % Significant %
bench_hydration/Turbopack RCC/1000 modules 4326.75ms ± 6.50ms 4847.43ms ± 15.92ms +12.03% +10.96%
bench_hydration/Turbopack RSC/1000 modules 3911.81ms ± 22.61ms 4455.80ms ± 18.55ms +13.91% +11.67%
bench_hydration/Turbopack SSR/1000 modules 3768.97ms ± 29.15ms 4279.31ms ± 29.40ms +13.54% +10.27%
bench_startup/Turbopack CSR/1000 modules 2850.32ms ± 8.85ms 3304.32ms ± 50.01ms +15.93% +11.73%
bench_startup/Turbopack RCC/1000 modules 2631.78ms ± 6.28ms 3141.31ms ± 11.94ms +19.36% +17.89%
bench_startup/Turbopack RSC/1000 modules 2525.07ms ± 9.80ms 3016.10ms ± 12.00ms +19.45% +17.58%
bench_startup/Turbopack SSR/1000 modules 2168.65ms ± 4.25ms 2667.83ms ± 7.06ms +23.02% +21.89%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.13ms ± 0.10ms 10.17ms ± 0.07ms +0.48%
bench_hmr_to_commit/Turbopack RCC/1000 modules 10.31ms ± 0.08ms 10.32ms ± 0.10ms +0.17%
bench_hmr_to_commit/Turbopack RSC/1000 modules 509.75ms ± 1.76ms 508.60ms ± 2.68ms -0.22%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.30ms ± 0.09ms 10.24ms ± 0.08ms -0.59%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9199.45µs ± 72.52µs 9219.02µs ± 104.72µs +0.21%
bench_hmr_to_eval/Turbopack RCC/1000 modules 9249.60µs ± 73.62µs 9363.14µs ± 103.20µs +1.23%
bench_hmr_to_eval/Turbopack SSR/1000 modules 9191.23µs ± 62.62µs 9196.33µs ± 62.91µs +0.06%
bench_hydration/Turbopack RCC/1000 modules 4326.75ms ± 6.50ms 4847.43ms ± 15.92ms +12.03% +10.96%
bench_hydration/Turbopack RSC/1000 modules 3911.81ms ± 22.61ms 4455.80ms ± 18.55ms +13.91% +11.67%
bench_hydration/Turbopack SSR/1000 modules 3768.97ms ± 29.15ms 4279.31ms ± 29.40ms +13.54% +10.27%
bench_startup/Turbopack CSR/1000 modules 2850.32ms ± 8.85ms 3304.32ms ± 50.01ms +15.93% +11.73%
bench_startup/Turbopack RCC/1000 modules 2631.78ms ± 6.28ms 3141.31ms ± 11.94ms +19.36% +17.89%
bench_startup/Turbopack RSC/1000 modules 2525.07ms ± 9.80ms 3016.10ms ± 12.00ms +19.45% +17.58%
bench_startup/Turbopack SSR/1000 modules 2168.65ms ± 4.25ms 2667.83ms ± 7.06ms +23.02% +21.89%

crates/next-core/js/src/entry/router.ts Outdated Show resolved Hide resolved
crates/next-core/src/router.rs Outdated Show resolved Hide resolved
crates/next-core/src/router.rs Outdated Show resolved Hide resolved
Copy link
Member

@sokra sokra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a test case to next-dev-tests

crates/next-core/js/src/entry/router.ts Outdated Show resolved Hide resolved
crates/next-core/src/router.rs Outdated Show resolved Hide resolved
@jridgewell
Copy link
Contributor Author

Added tests (and addressed some review comments), but the tests are failing because Next.js doesn't handle the middleware yet.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2023

Benchmark for 84aaa14

Test Base PR % Significant %
bench_hydration/Turbopack RCC/1000 modules 4239.56ms ± 12.59ms 4721.36ms ± 15.15ms +11.36% +10.00%
bench_hydration/Turbopack RSC/1000 modules 3763.05ms ± 16.16ms 4294.52ms ± 33.60ms +14.12% +11.38%
bench_hydration/Turbopack SSR/1000 modules 3715.52ms ± 27.17ms 4228.11ms ± 25.43ms +13.80% +10.81%
bench_startup/Turbopack CSR/1000 modules 2803.34ms ± 13.82ms 3312.52ms ± 10.94ms +18.16% +16.24%
bench_startup/Turbopack RCC/1000 modules 2577.82ms ± 8.04ms 3053.79ms ± 21.36ms +18.46% +16.08%
bench_startup/Turbopack RSC/1000 modules 2473.58ms ± 7.89ms 2899.14ms ± 28.19ms +17.20% +14.20%
bench_startup/Turbopack SSR/1000 modules 2122.08ms ± 5.32ms 2600.55ms ± 6.23ms +22.55% +21.35%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9368.32µs ± 99.93µs 9450.23µs ± 57.44µs +0.87%
bench_hmr_to_commit/Turbopack RCC/1000 modules 9589.72µs ± 73.90µs 9578.90µs ± 98.86µs -0.11%
bench_hmr_to_commit/Turbopack RSC/1000 modules 496.39ms ± 2.41ms 501.48ms ± 2.76ms +1.03%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9567.87µs ± 82.81µs 9646.30µs ± 100.39µs +0.82%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8407.23µs ± 61.74µs 8480.91µs ± 60.44µs +0.88%
bench_hmr_to_eval/Turbopack RCC/1000 modules 8516.23µs ± 70.74µs 8542.87µs ± 65.49µs +0.31%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8414.12µs ± 80.05µs 8483.43µs ± 72.97µs +0.82%
bench_hydration/Turbopack RCC/1000 modules 4239.56ms ± 12.59ms 4721.36ms ± 15.15ms +11.36% +10.00%
bench_hydration/Turbopack RSC/1000 modules 3763.05ms ± 16.16ms 4294.52ms ± 33.60ms +14.12% +11.38%
bench_hydration/Turbopack SSR/1000 modules 3715.52ms ± 27.17ms 4228.11ms ± 25.43ms +13.80% +10.81%
bench_startup/Turbopack CSR/1000 modules 2803.34ms ± 13.82ms 3312.52ms ± 10.94ms +18.16% +16.24%
bench_startup/Turbopack RCC/1000 modules 2577.82ms ± 8.04ms 3053.79ms ± 21.36ms +18.46% +16.08%
bench_startup/Turbopack RSC/1000 modules 2473.58ms ± 7.89ms 2899.14ms ± 28.19ms +17.20% +14.20%
bench_startup/Turbopack SSR/1000 modules 2122.08ms ± 5.32ms 2600.55ms ± 6.23ms +22.55% +21.35%

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

Benchmark for c317177

Test Base PR % Significant %
bench_hydration/Turbopack RCC/1000 modules 4397.03ms ± 16.72ms 4885.18ms ± 10.81ms +11.10% +9.78%
bench_hydration/Turbopack RSC/1000 modules 3909.20ms ± 36.47ms 4336.26ms ± 18.58ms +10.92% +7.96%
bench_hydration/Turbopack SSR/1000 modules 3733.00ms ± 19.78ms 4294.88ms ± 8.22ms +15.05% +13.41%
bench_startup/Turbopack CSR/1000 modules 2902.76ms ± 7.41ms 3333.24ms ± 11.56ms +14.83% +13.45%
bench_startup/Turbopack RCC/1000 modules 2610.70ms ± 6.98ms 3107.93ms ± 10.73ms +19.05% +17.60%
bench_startup/Turbopack RSC/1000 modules 2553.82ms ± 8.11ms 3060.44ms ± 11.16ms +19.84% +18.21%
bench_startup/Turbopack SSR/1000 modules 2188.05ms ± 3.20ms 2668.24ms ± 23.36ms +21.95% +19.46%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.04ms ± 0.08ms 10.19ms ± 0.06ms +1.55%
bench_hmr_to_commit/Turbopack RCC/1000 modules 10.43ms ± 0.08ms 10.44ms ± 0.10ms +0.08%
bench_hmr_to_commit/Turbopack RSC/1000 modules 514.15ms ± 3.21ms 501.36ms ± 4.14ms -2.49%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.09ms ± 0.09ms 9986.34µs ± 97.45µs -1.05%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9028.35µs ± 90.55µs 9201.65µs ± 76.90µs +1.92%
bench_hmr_to_eval/Turbopack RCC/1000 modules 9320.21µs ± 98.58µs 9381.28µs ± 83.80µs +0.66%
bench_hmr_to_eval/Turbopack SSR/1000 modules 9220.38µs ± 94.72µs 9026.59µs ± 81.16µs -2.10%
bench_hydration/Turbopack RCC/1000 modules 4397.03ms ± 16.72ms 4885.18ms ± 10.81ms +11.10% +9.78%
bench_hydration/Turbopack RSC/1000 modules 3909.20ms ± 36.47ms 4336.26ms ± 18.58ms +10.92% +7.96%
bench_hydration/Turbopack SSR/1000 modules 3733.00ms ± 19.78ms 4294.88ms ± 8.22ms +15.05% +13.41%
bench_startup/Turbopack CSR/1000 modules 2902.76ms ± 7.41ms 3333.24ms ± 11.56ms +14.83% +13.45%
bench_startup/Turbopack RCC/1000 modules 2610.70ms ± 6.98ms 3107.93ms ± 10.73ms +19.05% +17.60%
bench_startup/Turbopack RSC/1000 modules 2553.82ms ± 8.11ms 3060.44ms ± 11.16ms +19.84% +18.21%
bench_startup/Turbopack SSR/1000 modules 2188.05ms ± 3.20ms 2668.24ms ± 23.36ms +21.95% +19.46%

@github-actions
Copy link
Contributor

Benchmark for e537c77

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9473.83µs ± 70.78µs 12.76ms ± 0.27ms +34.65% +27.10%
bench_hmr_to_commit/Turbopack RCC/1000 modules 11.68ms ± 0.26ms 16.48ms ± 0.33ms +41.10% +29.60%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9630.50µs ± 88.00µs 12.76ms ± 0.24ms +32.55% +25.20%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8443.94µs ± 87.22µs 10.31ms ± 0.19ms +22.09% +15.20%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.17ms ± 0.10ms 12.61ms ± 0.36ms +23.91% +14.43%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8564.15µs ± 69.67µs 10.48ms ± 0.19ms +22.35% +15.91%
bench_hydration/Turbopack RSC/1000 modules 3843.91ms ± 15.89ms 3920.89ms ± 18.92ms +2.00% +0.19%
bench_startup/Turbopack CSR/1000 modules 2831.81ms ± 10.16ms 2888.21ms ± 15.33ms +1.99% +0.19%
bench_startup/Turbopack RCC/1000 modules 2580.43ms ± 6.29ms 2611.73ms ± 7.00ms +1.21% +0.18%
bench_startup/Turbopack SSR/1000 modules 2135.12ms ± 1.13ms 2169.74ms ± 2.29ms +1.62% +1.30%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9473.83µs ± 70.78µs 12.76ms ± 0.27ms +34.65% +27.10%
bench_hmr_to_commit/Turbopack RCC/1000 modules 11.68ms ± 0.26ms 16.48ms ± 0.33ms +41.10% +29.60%
bench_hmr_to_commit/Turbopack RSC/1000 modules 510.64ms ± 2.44ms 518.44ms ± 1.77ms +1.53%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9630.50µs ± 88.00µs 12.76ms ± 0.24ms +32.55% +25.20%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8443.94µs ± 87.22µs 10.31ms ± 0.19ms +22.09% +15.20%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.17ms ± 0.10ms 12.61ms ± 0.36ms +23.91% +14.43%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8564.15µs ± 69.67µs 10.48ms ± 0.19ms +22.35% +15.91%
bench_hydration/Turbopack RCC/1000 modules 4333.72ms ± 42.93ms 4312.45ms ± 9.17ms -0.49%
bench_hydration/Turbopack RSC/1000 modules 3843.91ms ± 15.89ms 3920.89ms ± 18.92ms +2.00% +0.19%
bench_hydration/Turbopack SSR/1000 modules 3718.53ms ± 28.12ms 3791.06ms ± 20.93ms +1.95%
bench_startup/Turbopack CSR/1000 modules 2831.81ms ± 10.16ms 2888.21ms ± 15.33ms +1.99% +0.19%
bench_startup/Turbopack RCC/1000 modules 2580.43ms ± 6.29ms 2611.73ms ± 7.00ms +1.21% +0.18%
bench_startup/Turbopack RSC/1000 modules 2470.74ms ± 10.84ms 2488.51ms ± 6.45ms +0.72%
bench_startup/Turbopack SSR/1000 modules 2135.12ms ± 1.13ms 2169.74ms ± 2.29ms +1.62% +1.30%

crates/next-core/src/next_server/context.rs Outdated Show resolved Hide resolved
crates/next-core/src/next_server/context.rs Outdated Show resolved Hide resolved
crates/next-core/src/router.rs Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

Benchmark for 3a15a31

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.11ms ± 0.09ms 13.38ms ± 0.24ms +32.27% +25.37%
bench_hmr_to_commit/Turbopack RCC/1000 modules 12.19ms ± 0.14ms 17.10ms ± 0.60ms +40.28% +27.47%
bench_hmr_to_commit/Turbopack RSC/1000 modules 524.18ms ± 2.25ms 540.89ms ± 3.45ms +3.19% +1.00%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.30ms ± 0.08ms 13.55ms ± 0.28ms +31.54% +24.11%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9161.39µs ± 71.55µs 10.93ms ± 0.22ms +19.32% +12.76%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.97ms ± 0.10ms 13.07ms ± 0.21ms +19.09% +13.24%
bench_hmr_to_eval/Turbopack SSR/1000 modules 9278.30µs ± 97.48µs 11.00ms ± 0.17ms +18.54% +12.58%
bench_hydration/Turbopack SSR/1000 modules 3833.38ms ± 9.80ms 3899.26ms ± 14.45ms +1.72% +0.45%
bench_startup/Turbopack CSR/1000 modules 2874.62ms ± 6.11ms 2932.88ms ± 12.37ms +2.03% +0.74%
bench_startup/Turbopack RCC/1000 modules 2653.52ms ± 9.24ms 2679.90ms ± 3.23ms +0.99% +0.05%
bench_startup/Turbopack SSR/1000 modules 2194.52ms ± 3.02ms 2218.73ms ± 3.87ms +1.10% +0.47%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.11ms ± 0.09ms 13.38ms ± 0.24ms +32.27% +25.37%
bench_hmr_to_commit/Turbopack RCC/1000 modules 12.19ms ± 0.14ms 17.10ms ± 0.60ms +40.28% +27.47%
bench_hmr_to_commit/Turbopack RSC/1000 modules 524.18ms ± 2.25ms 540.89ms ± 3.45ms +3.19% +1.00%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.30ms ± 0.08ms 13.55ms ± 0.28ms +31.54% +24.11%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9161.39µs ± 71.55µs 10.93ms ± 0.22ms +19.32% +12.76%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.97ms ± 0.10ms 13.07ms ± 0.21ms +19.09% +13.24%
bench_hmr_to_eval/Turbopack SSR/1000 modules 9278.30µs ± 97.48µs 11.00ms ± 0.17ms +18.54% +12.58%
bench_hydration/Turbopack RCC/1000 modules 4353.08ms ± 11.79ms 4387.23ms ± 13.27ms +0.78%
bench_hydration/Turbopack RSC/1000 modules 3959.55ms ± 25.39ms 4014.43ms ± 15.01ms +1.39%
bench_hydration/Turbopack SSR/1000 modules 3833.38ms ± 9.80ms 3899.26ms ± 14.45ms +1.72% +0.45%
bench_startup/Turbopack CSR/1000 modules 2874.62ms ± 6.11ms 2932.88ms ± 12.37ms +2.03% +0.74%
bench_startup/Turbopack RCC/1000 modules 2653.52ms ± 9.24ms 2679.90ms ± 3.23ms +0.99% +0.05%
bench_startup/Turbopack RSC/1000 modules 2545.77ms ± 8.26ms 2583.51ms ± 12.16ms +1.48%
bench_startup/Turbopack SSR/1000 modules 2194.52ms ± 3.02ms 2218.73ms ± 3.87ms +1.10% +0.47%

return await makeResolver(dir, nextConfig);
const edgeInfo = {
name: "edge",
paths: middlewareChunkGroup.map((chunk: string) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be called files and be relative to the distDir to match our middleware plugin
x-ref: https://github.com/vercel/next.js/blob/7d8f85bd8dbd767dfac0d92eed651877268e62cb/packages/next/src/build/webpack/plugins/middleware-plugin.ts#L35

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this from

const edgeInfo = {
name: "edge",
paths: chunkGroup.map((chunk: string) => join(process.cwd(), chunk)),
wasm: [],
env: [],
assets: [],
};
, but I'm not sure if it's correct. @sokra?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I aligned with the return value of getEdgeFunctionInfo, which converts the format in the manifest file into one with paths

https://github.com/vercel/next.js/blob/7d8f85bd8dbd767dfac0d92eed651877268e62cb/packages/next/src/server/next-server.ts#L1640-L1654

So when this info object is provided it could skip calling getEdgeFunctionInfo.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, yeah aligning on that return type seems alright

@jridgewell
Copy link
Contributor Author

Removing the test case while we wait on Next to land the middleware changes. Once we update to the next release, I'll readd the test.

@jridgewell jridgewell added the pr: automerge Kodiak will merge these automatically after checks pass label Feb 16, 2023
@kodiakhq kodiakhq bot merged commit f755b15 into main Feb 16, 2023
@kodiakhq kodiakhq bot deleted the jrl-middleware-compile branch February 16, 2023 03:44
@github-actions
Copy link
Contributor

Benchmark for f005173

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.22ms ± 0.06ms 13.51ms ± 0.24ms +32.22% +25.94%
bench_hmr_to_commit/Turbopack RCC/1000 modules 12.51ms ± 0.15ms 17.51ms ± 0.41ms +39.98% +30.29%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.34ms ± 0.05ms 13.52ms ± 0.25ms +30.81% +24.67%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9204.77µs ± 62.80µs 10.71ms ± 0.17ms +16.33% +11.15%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.84ms ± 0.09ms 13.16ms ± 0.30ms +21.39% +13.84%
bench_hmr_to_eval/Turbopack SSR/1000 modules 9266.78µs ± 85.23µs 11.04ms ± 0.19ms +19.18% +12.93%
bench_hydration/Turbopack RCC/1000 modules 3827.66ms ± 18.06ms 3931.98ms ± 29.73ms +2.73% +0.23%
bench_startup/Turbopack CSR/1000 modules 2691.08ms ± 6.81ms 2740.81ms ± 14.18ms +1.85% +0.29%
bench_startup/Turbopack RCC/1000 modules 2290.33ms ± 3.67ms 2332.36ms ± 4.88ms +1.83% +1.09%
bench_startup/Turbopack SSR/1000 modules 2105.79ms ± 1.95ms 2132.88ms ± 2.54ms +1.29% +0.86%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.22ms ± 0.06ms 13.51ms ± 0.24ms +32.22% +25.94%
bench_hmr_to_commit/Turbopack RCC/1000 modules 12.51ms ± 0.15ms 17.51ms ± 0.41ms +39.98% +30.29%
bench_hmr_to_commit/Turbopack RSC/1000 modules 515.34ms ± 1.64ms 518.99ms ± 0.84ms +0.71%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.34ms ± 0.05ms 13.52ms ± 0.25ms +30.81% +24.67%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9204.77µs ± 62.80µs 10.71ms ± 0.17ms +16.33% +11.15%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.84ms ± 0.09ms 13.16ms ± 0.30ms +21.39% +13.84%
bench_hmr_to_eval/Turbopack SSR/1000 modules 9266.78µs ± 85.23µs 11.04ms ± 0.19ms +19.18% +12.93%
bench_hydration/Turbopack RCC/1000 modules 3827.66ms ± 18.06ms 3931.98ms ± 29.73ms +2.73% +0.23%
bench_hydration/Turbopack RSC/1000 modules 3401.80ms ± 7.76ms 3433.03ms ± 9.48ms +0.92%
bench_hydration/Turbopack SSR/1000 modules 3572.34ms ± 15.18ms 3588.05ms ± 15.48ms +0.44%
bench_startup/Turbopack CSR/1000 modules 2691.08ms ± 6.81ms 2740.81ms ± 14.18ms +1.85% +0.29%
bench_startup/Turbopack RCC/1000 modules 2290.33ms ± 3.67ms 2332.36ms ± 4.88ms +1.83% +1.09%
bench_startup/Turbopack RSC/1000 modules 2212.41ms ± 5.29ms 2236.54ms ± 7.06ms +1.09%
bench_startup/Turbopack SSR/1000 modules 2105.79ms ± 1.95ms 2132.88ms ± 2.54ms +1.29% +0.86%

timneutkens pushed a commit to vercel/next.js that referenced this pull request Feb 21, 2023
…jjsweb.site> Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>

# New Features
- vercel/turbo#3771
- vercel/turbo#3690

# Performance
- vercel/turbo#3768

# Fixes
- vercel/turbo#3795
- vercel/turbo#3746
- vercel/turbo#3832
- vercel/turbo#3827
- vercel/turbo#3847

# Other
- vercel/turbo#3803
- vercel/turbo#3685
- vercel/turbo#3848

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
jridgewell added a commit to vercel/next.js that referenced this pull request Mar 10, 2023
This updates our Next.js router, passing the `edgeInfo` manifest generated from the `middleware.js` file (or any other configured page extension).

Fixes WEB-277
Fixes WEB-370
sokra pushed a commit to vercel/next.js that referenced this pull request Mar 13, 2023
This updates our Next.js router, passing the `edgeInfo` manifest generated from the `middleware.js` file (or any other configured page extension).

Fixes WEB-277
Fixes WEB-370
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Kodiak will merge these automatically after checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants