-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
bug: pending triageMaybe a bug, waiting for confirmationMaybe a bug, waiting for confirmation
Description
Describe the bug
文件:config.mts


Reproduction
import { defineConfig } from 'vitepress'
export default async () => {
console.log('开始请求数据...')
const posts = await (await fetch('http://127.0.0.1:9001/dagent/vite/userInfo')).json()
console.log(posts)
return defineConfig({
// 应用级配置选项
lang: 'en-US',
title: 'VitePress',
description: 'Vite & Vue powered static site generator.',
// 主题级配置选项
themeConfig: {
sidebar: [
// ...posts.map((post) => ({
// text: post,
// }))
]
}
})
}
Expected behavior
无
System Info
无
Additional context
No response
Validations
- Check if you're on the latest VitePress version.
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
bug: pending triageMaybe a bug, waiting for confirmationMaybe a bug, waiting for confirmation