Expose slug, uuid of page to StoryblokStory #1230
Labels
pending-author
[Issue] Awaiting further information or action from the issue author
pending-triage
[Issue] Ticket is pending to be prioritised
Description
I am using the Storyblok SDK with Nextjs using the app router. When setting up my app for use and using StoryblokStory in my [...slug]/page.tsx I pass it the whole storyblok story object but what is exposed to my underlying page type is the story.content object. This does not have access to the uuid of the story or the slug of the page which is necessary for me to fetch secondary data.
Suggested solution or improvement
Expose the whole story object to the StoryblokStory
OR
have options to pass uuid, slug to the StoryblokStory
Additional context
my [...slug]/page.tsx looks like
and one of my underlying page types looks like
Validations
The text was updated successfully, but these errors were encountered: