Skip to content

Commit 73a31ad

Browse files
fix: fallback export for empty prerendered queries
1 parent 77e5905 commit 73a31ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export type { KirbyBlock, KirbyDefaultBlockType, KirbyDefaultBlocks, KirbyLayout
225225
${[...prefetchedQueries.entries()].map(([key, response]) => `
226226
export const ${key} = ${JSON.stringify(response?.result || null, undefined, 2)}
227227
export type ${pascalCase(key)} = typeof ${key}
228-
`.trimStart()).join('')}`.trimStart()
228+
`.trimStart()).join('') || `export {}\n`}`.trimStart()
229229
},
230230
})
231231
},

0 commit comments

Comments
 (0)