Fryuni / inox-tools

Oxygen-free tools for Astronauts.
https://inox-tools.fryuni.dev
MIT License
64 stars 2 forks source link

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

Closed Fryuni closed 4 months ago

Fryuni commented 8 months ago
// 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 commented 4 months ago