Skip to content

Commit cc1aa9b

Browse files
committed
chore(reproduction): break nuxt studio with data collections
1 parent 0b4068b commit cc1aa9b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

playground/docus/content.config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ const collections: Record<string, DefinedCollection> = {
1919
prefix: '/',
2020
},
2121
}),
22+
data: defineCollection({
23+
type: 'data',
24+
source: {
25+
include: 'data/*.json',
26+
},
27+
schema: z.object({
28+
title: z.string(),
29+
}),
30+
}),
2231
landing: defineCollection({
2332
type: 'page',
2433
source: {
@@ -29,7 +38,7 @@ const collections: Record<string, DefinedCollection> = {
2938
type: 'page',
3039
source: {
3140
include: '**',
32-
exclude: ['index.md', '3.custom-case/**/*.md'],
41+
exclude: ['index.md', '3.custom-case/**/*.md', 'data'],
3342
},
3443
schema: createDocsSchema(),
3544
}),
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"title": "Example Data"
3+
}

0 commit comments

Comments
 (0)