You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use the Keystatic reader to fetch content within a dynamic route under the app/ directory, the reader does not function as expected.
This issue occurs specifically when the route is dynamic ([slug], [id], etc.), and the Keystatic reader is called to fetch content dynamically based on the route parameters.
Steps to Reproduce:
Set up a Next.js project using the app/ directory structure.
Install and configure Keystatic to manage static content (e.g., Markdown files).
Create a dynamic route, such as app/[slug]/page.tsx, and call the Keystatic reader inside it to fetch content based on the slug.
Try accessing the route with different dynamic values (/post-1, /post-2, etc.).
When trying to use the Keystatic reader to fetch content within a dynamic route under the app/ directory, the reader does not function as expected.
This issue occurs specifically when the route is dynamic ([slug], [id], etc.), and the Keystatic reader is called to fetch content dynamically based on the route parameters.
Steps to Reproduce:
REPO
https://github.com/bastienrobert/nextjs-keystatic-test-params-repro
Workaround:
Dynamic import using the standard
import()
method, put every mdx and markdoc inline and format files to JSON.The text was updated successfully, but these errors were encountered: