// 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