The siteConfig object is used to define global site metadata, including the site name, description, URL, author information, social links, and navigation items. You can customize these values in src/lib/config.ts to match your project's identity.
Configuration Options
| Key | Type | Description |
|---|
name | string | The name of your site. |
description | string | A brief description of your site. |
url | string | The base URL of your site. |
author | object | Contains name (string) and url (string) for the site author. |
links | object | Contains github (string) for the project's GitHub repository. |
navItems | array | An array of navigation objects. Each object contains href (string), label (string), and an optional external (boolean) flag to indicate if the link leads to an external site. |
import { siteConfig } from './lib/config';
// Example of how the configuration structure looks
export const siteConfig = {
name: "My Awesome Site",
description: "A description of my site",
url: "https://example.com",
author: {
name: "John Doe",
url: "https://example.com/author",
},
links: {
github: "https://github.com/user/repo",
},
navItems: [
{ href: "/about", label: "About" },
{ href: "https://google.com", label: "Google", external: true },
],
};