Skip to content

Commit 4f083a8

Browse files
committed
fix(content.config): improve loading type
1 parent 586c3f0 commit 4f083a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const createLinkSchema = () => z.object({
2828
const createImageSchema = () => z.object({
2929
src: z.string().nonempty().editor({ input: 'media' }),
3030
alt: z.string().optional(),
31-
loading: z.string().optional(),
31+
loading: z.enum(['lazy', 'eager']).optional(),
3232
srcset: z.string().optional()
3333
})
3434

0 commit comments

Comments
 (0)