Skip to content

Optional Catch-all Segments and generateStaticParams #48878

Answered by morfies
BrieucCaillot asked this question in Help
Discussion options

You must be logged in to vote

In your allCompanyArticles, can try to return the slug as an array:

{
slug: [slug]
}

Seems for the catch-all generateStaticParams, this part is different with other dynamic routes.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BrieucCaillot
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants