mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
chore: changeset (#12084)
This commit is contained in:
parent
5b70610b0f
commit
12dae50c77
2 changed files with 6 additions and 1 deletions
5
.changeset/afraid-candles-hear.md
Normal file
5
.changeset/afraid-candles-hear.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Adds missing filePath property on content layer entries
|
|
@ -497,7 +497,7 @@ async function writeContentFiles({
|
|||
contentTypesStr += `};\n`;
|
||||
break;
|
||||
case CONTENT_LAYER_TYPE:
|
||||
dataTypesStr += `${collectionKey}: Record<string, {\n id: string;\n collection: ${collectionKey};\n data: ${dataType};\n rendered?: RenderedContent \n}>;\n`;
|
||||
dataTypesStr += `${collectionKey}: Record<string, {\n id: string;\n collection: ${collectionKey};\n data: ${dataType};\n rendered?: RenderedContent;\n filePath?: string \n}>;\n`;
|
||||
break;
|
||||
case 'data':
|
||||
if (collectionEntryKeys.length === 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue