---
title: 部署到 Vercel
description: 学习如何将你的 Geistdocs 网站部署到 Vercel
type: guide
summary: 使用正确的项目设置从 Vercel 控制台部署您的 Geistdocs 站点。
prerequisites:
  - /docs/getting-started
  - /docs/env
related:
  - /docs/configuration
---

## 先决条件

在部署之前，你需要：

- 一个 [GitHub 帐户](https://github.com) 并包含你的 Geistdocs 仓库
- 一个 [Vercel 帐户](https://vercel.com)（在 [vercel.com](https://vercel.com) 注册）
- 你的 Vercel 帐户已连接到你的 GitHub 帐户
- 已准备好的环境变量（参见 [环境变量](/docs/env)）

## 部署到 Vercel

要从 Vercel 控制面板部署：

1. 前往 [vercel.com/new](https://vercel.com/new)
2. 选择你的 Geistdocs 仓库
3. 配置你的项目设置：
   - **框架预设**: Next.js（自动检测）
   - **构建命令**: `pnpm build` or `npm run build`
   - **输出目录**: `.next` (默认)
   - **安装命令**: `pnpm install` or `npm install`
4. 添加你的环境变量（参见 [环境变量](/docs/env)）
5. 点击 "部署"