Skip to main content

Configuration

Configure the site to match your needs.

Configuration

All site configuration is managed through the lib/site-config.ts file.

Site Mode

Switch between blog and docs mode:

export const siteConfig = {
  mode: "blog", // or "docs"
  // ...
}

Basic Settings

export const siteConfig = {
  name: "My Site",
  description: "A modern content site",
  url: "https://example.com",
  // ...
}

Author Information

For blog mode, configure your author details:

author: {
  name: "Your Name",
  email: "hello@example.com",
  twitter: "@username",
  github: "username",
}

Customize navigation links for each mode:

nav: {
  blog: [
    { label: "Writing", href: "/blog" },
    { label: "About", href: "/about" },
  ],
  docs: [
    { label: "Docs", href: "/docs" },
    { label: "Blog", href: "/blog" },
    { label: "GitHub", href: "https://github.com", external: true },
  ],
}

Supabase Storage

Configure your Supabase bucket name in lib/supabase/storage.ts:

const BUCKET_NAME = "docs-blog-media"

Run the SQL script at scripts/001-setup-storage.sql to create the public bucket for storing images and assets.

Next Steps

Learn about Writing Content to start creating your posts and documentation.