generateStaticParams only generating static routes 1 of 3 routes; where do the files output and/or are there limitations? #66149
Unanswered
quadrillionio
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have three dynamic routes (page.js) for which i'd like to generate static pages via generateStaticParams. users/[id], shows/[id], and songs/[id]. Only one of the three generates html files, tho. i've added logging to all three (console.log()), so i'm certain all are executing @ build time. the build summary indicates ~40 (users) and ~15 (shows) static pages are generated respectively. However, post build, i only see html pages in .build\server\app\users. I don't see any html pages in .build\server\app\shows or .build\server\app\songs. am i looking in the wrong place?
i disabled the songs[id] route for this run, but, when enabled, the log indicates ~800 static songs pages are generated, but, like shows, none of the static html files appear in the build directories.
The routes are pretty simple. Code is below.
Possible differences:
The code for the route that's working:
the code for one of the routes that isn't working:
log output:
├ ● /shows/[id] 4.64 kB 119 kB
├ ├ /shows/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
├ ├ /shows/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
├ ├ /shows/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
├ └ [+14 more paths]
└ ● /users/[id] 1.14 kB 115 kB
├ /users/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
├ /users/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
├ /users/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
└ [+38 more paths]
├ chunks/7023-1949804f066de870.js 31.5 kB
├ chunks/fd9d1056-f9811f42766a4fbd.js 53.6 kB
└ other shared chunks (total) 2.11 kB
Beta Was this translation helpful? Give feedback.
All reactions