docs(og-image): add excludeRoot config + update preview images

This commit is contained in:
Ben Schlegel 2024-11-10 11:35:20 +01:00
parent 12c99a5673
commit fdbd24c1ff
No known key found for this signature in database
GPG Key ID: 8BDB8891C1575E22
3 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ generateSocialImages: {
colorScheme: "lightMode", // what colors to use for generating image, same as theme colors from config, valid values are "darkMode" and "lightMode" colorScheme: "lightMode", // what colors to use for generating image, same as theme colors from config, valid values are "darkMode" and "lightMode"
width: 1200, // width to generate with (in pixels) width: 1200, // width to generate with (in pixels)
height: 630, // height to generate with (in pixels) height: 630, // height to generate with (in pixels)
excludeRoot: false, // wether to exclude "/" index path to be excluded from auto generated images (false = use auto, true = use default og image)
imageStructure: defaultImage // import from `socialImage.tsx`, recommended to add your own one there as well imageStructure: defaultImage // import from `socialImage.tsx`, recommended to add your own one there as well
} }
``` ```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 KiB

After

Width:  |  Height:  |  Size: 134 KiB