// Server barrel — plain Node async utilities. Callable from any server // runtime: Next.js RSCs / route handlers, Hono routes, SvelteKit endpoints, // Express handlers. No framework directives. // // For React Server Components (async-rendering route helpers like // ) import from `@blog/rsc` instead. // // `markdown-cache` is intentionally NOT re-exported here. Its // `loadMarkdownContent` does a `process.cwd()` fs read that bundlers // (Turbopack/webpack NFT) can't statically scope, so re-exporting it would // drag the whole consuming project into every server bundle that touches // this barrel. Import it directly from `@blog/markdown-cache` when needed. export { getPublishedPosts, getPostsByCategories, getPaginatedPosts, getFeaturedPosts, } from "./server-post-filters"; export { generateBlogListStaticParams, generateBlogPostStaticParams } from "./routes/static-params";