Closed adammockor closed 1 year ago
Currently, next export
is not supported with RSC. You probably don't need RSC if you want all your content to be fully static.
Well, not all content should be static. That's the point of RSC if I understand it correctly. If we forget about streaming, colocation of data instead of having getStaticProps
and less code in bundle due exclusion of server components and partial hydratation could be very useful for SSG too. But maybe I don't understand it correctly and RSC is not there yet.
If I understand correctly how next export
works, all prerendered HTML will still be hydrated on the client. I‘d love to remove this unnecessary hydration step for static components, which make up most of my pages, and hope that RSC can become a way to make that work.
Hey all! next export
support is planned for the app
directory, but is not implemented. We won't be adding next export
to this demo specifically, but will be talking more about this once support has landed. You can view the roadmap here: https://beta.nextjs.org/docs/app-directory-roadmap
I tried to add
next export
topackage.json
like so"build": "yarn next build && yarn next export"
, but non of the pages (other then 404) is generated. Why so? Not even when I addgetStaticProps
to some pages, likeindex.js
,csr.js
orrsc.server.js
.