feat(events): stream Redis invalidations over SSE
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user