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

App Router Support without the need for unstable_noStore #142

Open
m-sanders opened this issue Jun 10, 2024 · 1 comment
Open

App Router Support without the need for unstable_noStore #142

m-sanders opened this issue Jun 10, 2024 · 1 comment

Comments

@m-sanders
Copy link

m-sanders commented Jun 10, 2024

Use a noStore for env access opts App Router out from the full request cache. This is problematic for static pages that can benefit from edge caching and is a blocker to adopting this library.

There is an experimental next build feature that allows splitting the build step from the generation step:

next build --experimental-build-mode compile/generate. vercel/next.js#46544

Where the compile step can execute in CI and the generate step can execute in the runtime.

Support for this build approach would allow for this library to support static ahead of time generation with a runtime env and get closer to Vercel Nextjs.

@tclxshunquan-wang
Copy link

Are you considering supporting SSG in the future?

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

2 participants