feat(events): stream Redis invalidations over SSE

This commit is contained in:
2026-08-28 20:03:11 +00:00 Unverified
parent b59a038351
commit 455e4240ac
16 changed files with 453 additions and 1 deletions
+4
View File
@@ -2,6 +2,7 @@ import { connection } from "next/server";
import { CharacterDirectory } from "@/components/public/character-directory";
import { SiteHeader } from "@/components/public/site-header";
import { LiveRefresh } from "@/components/live-refresh";
import { loadPublicDirectory } from "@/lib/content/loaders";
export default async function HomePage() {
@@ -10,6 +11,9 @@ export default async function HomePage() {
return (
<div className="min-h-svh bg-background">
{process.env.BUZZ_DEMO_MODE === "true" ? null : (
<LiveRefresh endpoint="/api/events/directory" />
)}
<SiteHeader />
<main className="mx-auto w-full max-w-7xl px-4 py-10 sm:px-6 sm:py-14">
<header className="mb-8 max-w-3xl space-y-3">