Skip to content
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

Is next export supported? #1

Closed
adammockor opened this issue Oct 26, 2021 · 4 comments
Closed

Is next export supported? #1

adammockor opened this issue Oct 26, 2021 · 4 comments

Comments

@adammockor
Copy link

I tried to add next export to package.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 add getStaticProps to some pages, like index.js, csr.js or rsc.server.js.

@shuding
Copy link
Member

shuding commented Oct 26, 2021

Currently, next export is not supported with RSC. You probably don't need RSC if you want all your content to be fully static.

@adammockor
Copy link
Author

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.

@hippotastic
Copy link

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.

@leerob
Copy link
Member

leerob commented Nov 13, 2022

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

@leerob leerob closed this as completed Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants