fix(dashboard): resolve CMS content source paths in config

- Fix homepage and docs content source root paths from 'cms/content/*' to 'src/lib/cms/content/*'
- Paths are relative to process.cwd() and need the full path from project root
- Resolves ENOENT errors when reading markdown directories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Haitao Pan 2025-11-11 11:59:19 +08:00
parent 63cc1db1d4
commit 9ec2db8a0f

View File

@ -36,11 +36,11 @@ export const cmsConfig: CmsConfig = {
sources: {
homepage: {
type: 'filesystem',
root: 'cms/content/homepage',
root: 'src/lib/cms/content/homepage',
},
docs: {
type: 'filesystem',
root: 'cms/content/docs',
root: 'src/lib/cms/content/docs',
},
marketing: {
type: 'git',