---
title: "配置参考"
description: "查找站点配置、文档目录、构建命令和规范地址设置。"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.microcharon.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 配置参考

## 主要文件 {#files}

| 路径 | 用途 |
| --- | --- |
| `astro.config.ts` | 设置站点名称、地址、语言和侧栏 |
| `src/content/docs/` | 管理 MDX 文档和章节首页 |
| `src/styles/micro.css` | 设置 Micro Docs 的颜色、尺寸和首页样式 |

## 站点地址 {#site-url}

`SITE_URL` 用于规范链接、站点地图和文档索引。配置时填写完整的公开站点地址。Vercel 环境可使用 `VERCEL_PROJECT_PRODUCTION_URL`，本地开发默认使用 `http://localhost:4321`。

## 常用命令 {#commands}

| 命令 | 用途 |
| --- | --- |
| `pnpm dev` | 启动开发服务器 |
| `pnpm typecheck` | 检查 Astro 与 TypeScript |
| `pnpm build` | 生成静态页面和全文索引 |
| `pnpm preview` | 在本地预览最新构建 |

需要发布时查看[部署指南](https://docs.microcharon.dev/guides/deploy/)。

Source: https://docs.microcharon.dev/reference/index.mdx
