-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better support for dynamic pages #4208
Comments
You need to manually enhance page map while using dynamic routes https://nextra.site/docs/advanced/remote#enhance-pagemap |
That's what I'm doing. The issue is there types that Nextra provides are rudimentary, and the machinery for that is virtually non-existent. The use case that is covered by the docs, and, seems like, by the support machinery, is remote content. Which is not what I'm doing. The docs showcase an example where the data is appended to the end of the list - well, that's easy, yes. Ultimately, l still want to control placement of the folder though Would be much better if there was a |
Oh, actually, see humanode-network/biomapper-docs#50 for a concrete example |
Today, Nextra fails you miserably when you try using
generateStaticParams
for something like templated table-driven doc pages.In particular, when trying to generate the items in
_meta.ts
file dynamically for the values fromgenerateStaticParams
, the Nextra meta validation code fails being unable to find a file that would correspond to the route path - and no shit, it's covered by a dynamic[id]/page.ts
route andgenerateStaticParams
.So, what can we do? I propose to add a flag to
_meta
file for creating virtual file-like entries. The workaround we use for now ishref
- but that sucks cause those entries don't show up as real routes and don't get highlighting the real routes would have.The text was updated successfully, but these errors were encountered: