Listing all "exportable" thinga from page.tsx
Unanswered
Green Violet-ear posted this in #help-forum
Green Violet-earOP
I would want the docs to explicitly list all things that can be exported from a page.tsx file and a link to each documentation section that explains what it's for and examples of using it.
Maybe there exists such a list but I already looked at the "pages" section but I couldn't find any mentioned apart from the default export of coursd.
Maybe there exists such a list but I already looked at the "pages" section but I couldn't find any mentioned apart from the default export of coursd.
3 Replies
Asian black bear
Route segment config options, metadata and the page itself are legal exports if I’m not mistaken
Green Violet-earOP
Ah so that's what they are called. How ever it feels like that list is a bit incomplete. For example the
metadata and generateStaticParams and generateMetadata are exports I would expect to be in such a list.Asian black bear
Well you are always welcome to open a PR to the docs and contribute such a page if you feel like it is valuable enough.