---
stable_id: skills/skills-sh-antfu-skills-vitepress
type: skills
title: skills-sh-antfu-skills-vitepress
summary: >-
  ---

  name: vitepress-configuration

  description: Config file setup, defineConfig helper, site metadata, and build
  options

  ---

  # Configuration

  VitePress configuration is defined in `.vitepress/config.[js|ts|mjs|mts]`. Use
  `defineConfig` for TypeScript intellisense.

  ## Basic Config

  ```ts

  // .vitepress/config.ts

  import { defineConfig } from 'vitepress'
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/antfu/skills/HEAD/skills/vitepress/references/core-config.md
license: ""
upstream_ref: https://skills.sh/antfu/skills/vitepress
github_stars: 4218
github_forks: 211
github_is_organization: false
retrieved_at: 2026-06-11T08:33:25.312Z
content_sha256: 85c6a7ee227c47143fdc8e59b5b2e29bfbbf8499c893b7ce6589c2304f469e35
---
