-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
💡 RFC: Server-Side Rendering On Demand #1119
Comments
RFC Call decision: we really love this idea, and think it could be useful to the Astro project as a whole. But there are a few considerations. First, we have an Astro server runtime on our list as a long-term project goal. Likely won’t happen as part of 1.0, but we’ve been designing it from day 1 to eventually support this usecase. Short-term, I think we could probably see something implemented if it’s well-defined in scope. And to that end, I’d like to start a thread in #ideas-and-suggestions in Discord to flesh this out a bit more. Will post a link to that shortly. |
Ah forgot to check back in! We have an |
This may not be the correct location but this also is huge for generating endpoints after the initial build, on the first page load, which is a must when static sites start approaching 5k+ pages, otherwise, you have to figure out a way to facilitate 60min+ build times, even on faster generators like Astro or Eleventy. Netlify's max build limit is 30mins and I believe Vercel's is 60mins. Here are some of the different approaches and respective documentation: Netlify On-Demand Build / Distributed Persistent Rendering |
@drwpow sorry for reviving this old issue, but I'm not on Discord. Now that Astro has SSR, is this something that's in discussion? This feature is extremely useful in other frameworks. |
For others that are looking for info about ISR in Astro: withastro/roadmap#698 |
Background & Motivation
I think astro is an amazing project that will push web performance forward. What I'm mostly lacking at the moment is the ability to run astro in SSR mode and not pre-generate all the pages in advance. This current limitation is preventing me to use it in many use cases.
Proposed Solution
Possible solutions
A render API, similar to what Nuxt provides: https://nuxtjs.org/docs/2.x/internals-glossary/nuxt-render
Alternatives considered
Risks, downsides, and/or tradeoffs
Open Questions
Detailed Design
No response
Help make it happen!
The text was updated successfully, but these errors were encountered: