Throw for empty or incomplete generateStaticParams results with output: export#95969
Merged
devjiwonchoi merged 3 commits intoJul 23, 2026
Merged
Conversation
Contributor
Tests PassedCommit: b8602c4 |
Contributor
Stats from current PR✅ No significant changes detected📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles
Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📎 Tarball URLCommit: b8602c4 |
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 20, 2026 17:29
81b092b to
aa6e944
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 20, 2026 17:29
461e27f to
0023c4b
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 20, 2026 18:34
aa6e944 to
f3ce9fc
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 20, 2026 18:34
0023c4b to
14f573a
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 20, 2026 18:50
f3ce9fc to
c37b7ca
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 20, 2026 18:50
14f573a to
a55cdb9
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 20, 2026 19:00
c37b7ca to
8e7a3d2
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 20, 2026 19:00
a55cdb9 to
1bbc8c3
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 20, 2026 19:36
1bbc8c3 to
a606de3
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 20, 2026 19:56
8e7a3d2 to
d7b8eba
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 20, 2026 20:09
a606de3 to
37f2178
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
7 times, most recently
from
July 21, 2026 11:40
8d5111b to
f33917c
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 21, 2026 12:18
37f2178 to
db0dded
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 21, 2026 12:18
f33917c to
5e45407
Compare
devjiwonchoi
marked this pull request as ready for review
July 21, 2026 15:11
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 21, 2026 15:58
5e45407 to
5778adb
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 21, 2026 19:05
5778adb to
8b7b58a
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 21, 2026 19:05
db0dded to
5800998
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 21, 2026 19:17
8b7b58a to
da02d2d
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 21, 2026 19:17
5800998 to
c928555
Compare
icyJoseph
approved these changes
Jul 22, 2026
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 22, 2026 15:00
a294fb7 to
e6245a9
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
2 times, most recently
from
July 23, 2026 18:09
5b8fc88 to
f9fd199
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 23, 2026 19:02
f9fd199 to
b848c8e
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-return-validation
branch
from
July 23, 2026 19:02
a3fe59c to
0250d96
Compare
devjiwonchoi
force-pushed
the
jiwon/gsp-export-diagnostics
branch
from
July 23, 2026 20:27
b848c8e to
b8602c4
Compare
devjiwonchoi
added a commit
that referenced
this pull request
Jul 23, 2026
> [!TIP]
> This PR is best reviewed commit by commit.
### Why?
`generateStaticParams` must return an array of objects, but Next.js does
not currently provide a clear error when it returns something else.
### How?
- Throw when `generateStaticParams` does not return an array.
- Throw when an item in the returned array is not an object.
- Keep allowing `{}`. The follow-up rejects it with `output: 'export'`
when it leaves a dynamic route parameter missing.
Follow-up: #95969
Supersedes #95388.
<!-- NEXT_JS_LLM -->
Co-authored-by: SukkaW <isukkaw@gmail.com>
---------
Co-authored-by: Joseph <joseph.chamochumbi@vercel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tip
This PR is best reviewed commit by commit.
Why?
With
output: 'export', an empty array or incomplete params can be reported as a missinggenerateStaticParamsfunction, even when the function exists.How?
generateStaticParamsinvocation returns[].Stacked on #95968.
Supersedes #95388.
Co-authored-by: SukkaW isukkaw@gmail.com