Something went wrong. Try again.
React blog kit backed by AT Protocol. Provides filtering UI, pagination, Bluesky comments/embeds, subscribe widget, and markdown rendering.
Something went wrong. Try again.
1.2 kB · 21 lines
TSX
at main
12345678910111213141516171819202122// Next.js adapter barrel — client-safe entry only.//// Earlier versions also re-exported async RSC route helpers and the OG image// factory. That broke client builds: when a client component imports from// this barrel (e.g. for `NextBlogProvider`), the bundler statically traces// every re-exported module, even ones it would otherwise tree-shake. Any// re-export pulling a server-only runtime API (`next/server`'s `after`,// `next/og`'s `ImageResponse` → `@vercel/og` → `sharp`) ended up in the// client graph and the build failed on `fs`/`child_process`/`after`.//// Rule for this barrel: only modules that are client-runnable on their own// belong here. `"use client"` modules and pure helpers (type-only `next`// imports, framework-agnostic code) are safe. Anything that imports a// server-only Next runtime API gets its own entry:// - `@blog/next-rsc` — async RSC route helpers (`BlogPostPage`,// `BlogListPage`).// - `@blog/next-og` — `createBlogOpenGraphImage`.
export { nextImageAdapter, NextBlogProvider } from "./next-client";export type { NextBlogProviderProps } from "./next-client";export { generateBlogPostMetadata } from "./next-metadata";