Avatar for the vercel user
vercel
next.js
BlogDocsChangelog

Improve error message for sync server functions

#81705Merged
Comparing
hl/improve-async-server-functions-error
(
4144d5d
) with
canary
(
386afcd
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
9
New
0
Dropped
0
Ignored
3

Benchmarks

Passed

build[mui]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps::build[mui]
CodSpeed Performance Gauge
+1%
3.2 s
3.2 s
build[joy]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps::build[joy]
CodSpeed Performance Gauge
0%
2.1 s
2.1 s
build[framer-motion-single]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps::build[framer-motion-single]
CodSpeed Performance Gauge
0%
2.2 s
2.2 s
build[date-fns-all]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps::build[date-fns-all]
CodSpeed Performance Gauge
0%
2.3 s
2.3 s
build[lucide-react-all]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps::build[lucide-react-all]
CodSpeed Performance Gauge
0%
9.4 s
9.4 s
build[framer-motion-all]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps::build[framer-motion-all]
CodSpeed Performance Gauge
0%
3.1 s
3.1 s
build[shiki]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps::build[shiki]
CodSpeed Performance Gauge
0%
6.1 s
6.1 s
build[lucide-react-single]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps::build[lucide-react-single]
CodSpeed Performance Gauge
0%
913.6 ms
915.9 ms
build[date-fns-single]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps::build[date-fns-single]
CodSpeed Performance Gauge
0%
1.4 s
1.4 s

Ignored

hmr_updates_large_20Ignored
crates/next-api/benches/hmr.rs::hmr_updates_large_20
CodSpeed Performance Gauge
-2%
16.8 µs
17.1 µs
hmr_updates_medium_10Ignored
crates/next-api/benches/hmr.rs::hmr_updates_medium_10
CodSpeed Performance Gauge
+2%
17.2 µs
16.9 µs
hmr_updates_small_5Ignored
crates/next-api/benches/hmr.rs::hmr_updates_small_5
CodSpeed Performance Gauge
+1%
17.1 µs
17 µs

Commits

Click on a commit to change the comparison range
Base
canary
386afcd
0%
Improve error message for sync server functions When a server action or `'use cache'` function is defined as a synchronous function, the error message now only marks the function name for better clarity. Previously, the entire function body was marked, which looks fine in small test fixtures, but is pretty messy for larger functions, both in the terminal as well as in the dev error overlay. For anonymous default exports, we can't optimize this and are still marking the entire function body, as we don't have a name to refer to.
4144d5d
2 days ago
by unstubbable
© 2025 CodSpeed Technology
Home Terms Privacy Docs