File tree Expand file tree Collapse file tree
app/docs/[plugin]/[version]/[...slug] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,13 +120,14 @@ export async function generateStaticParams() {
120120 for ( const version of repository . versions ) {
121121 const versionSlug = version . version ;
122122
123- params . push ( { plugin : repoSlug , version : versionSlug , slug : [ ] } ) ;
123+ // Skip empty slug - that's handled by [version]/page.tsx
124+ // params.push({ plugin: repoSlug, version: versionSlug, slug: [] });
124125
125126 // Add limited files for this version
126127 if ( version . limited_files ) {
127128 for ( const file of version . limited_files ) {
128129 if ( file . slug === 'index' ) {
129- continue ; // skip index as it's already added
130+ continue ; // skip index as it's handled by [version]/page.tsx
130131 }
131132 params . push ( { plugin : repoSlug , version : versionSlug , slug : [ file . slug ] } ) ;
132133 }
You can’t perform that action at this time.
0 commit comments