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

[new package]: Partial and bundled pre-rendering #48

Closed
Fryuni opened this issue Mar 20, 2024 · 1 comment
Closed

[new package]: Partial and bundled pre-rendering #48

Fryuni opened this issue Mar 20, 2024 · 1 comment

Comments

@Fryuni
Copy link
Owner

Fryuni commented Mar 20, 2024

// Use the getStaticPaths and prerender those paths, but also deploy the renderer
// to handle any other matching route.
// For example: `/blog/[slug].astro` could prerender all the existing posts
//              but also handle dynamically any unknown slug to redirect to the closest match
//              or show a custom 404 page just for the /blog/ subpath
export const prerender = 'partial';

// Prerenders the page but bundles the HTML into the SSR renderer, so it is served by the on-demand
// renderer and goes through the middleware.
export const prerender = 'bundled';

Original idea on Discord

@Fryuni Fryuni changed the title [new package]: Allow partial and bundled pre-rendering [new package]: Partial and bundled pre-rendering Mar 20, 2024
@Fryuni
Copy link
Owner Author

Fryuni commented Jul 7, 2024

@Fryuni Fryuni closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant