One codebase, two rendering
rendering strategies.
A live simulation showcasing Astro 7's hybrid capabilities. The Website half is static-optimized — served instantly from Cloudflare Edge. The Webapp half opts in to the Worker with prerender = false, streaming dynamic data on demand.
Static-Friendly Pages
Content collections, static route generation, and optimized markup. Served directly from Cloudflare's edge cache with zero server runtime cost per hit.
Native Webapp Routes
Encrypted KV Sessions, Astro Actions, route caching, server islands, and client Preact islands — streamed instantly to browser and mobile devices.
Data-Fetch Hierarchy on this Page
SSR ModeOn-demand session evaluation
This page evaluates user session cookies dynamically on Cloudflare Workers, rendering personalized CTA states.
export const prerender = false;
const user = Astro.locals.user;Content Collections (Content Layer API)
Blog posts originate from src/content/blog via the Content Layer API with typed frontmatter schemas.
const posts = await getCollection('blog');Prestige Splash Intro
Navigating to /app displays a prestige splash intro before loading the webapp dashboard.
<a href="/app">Launch Webapp Shell →</a>https://astrov7.sandikodev.workers.dev/Session Status: Unauthenticated