import { createBlogConfig, createAtprotoFeed } from "@blog";
import { nextImageAdapter } from "@blog/next";
import { russAuthor } from "@/content/blog/authors";
import { categories, tagToCategoryMap } from "@/content/blog/categories";
import { coverImages } from "@/lib/cover-images";
import { blogTelemetry } from "@/lib/blog-telemetry";

export const blogConfig = createBlogConfig({
  basePath: "/blog",
  siteOrigin: "https://smart-knowledge-systems.com",
  postsPerPage: 5,
  feed: createAtprotoFeed({
    did: "did:plc:i2fgba5nignuw4nccml33wjp",
    defaultAuthor: russAuthor,
    categories,
    tagToCategoryMap,
  }),
  categories,
  defaultAuthor: russAuthor,
  sequoia: {
    publicationUri:
      "at://did:plc:i2fgba5nignuw4nccml33wjp/site.standard.publication/3mfds4aqql323",
  },
  coverImageMap: coverImages,
  imageComponent: nextImageAdapter,
  telemetry: blogTelemetry,
});
