File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const logo = logos.dark || logos.light
31
31
32
32
const logoSrc = logo
33
33
? process . env . NODE_ENV === 'development'
34
- ? ( logo . src . replace ( / \? .* / , '' ) . replace ( '/@fs' , '' ) )
34
+ ? ( logo . src . replace ( / \? .* / , '' ) . replace ( '/@fs' , '' ) ) . split ( '?' ) [ 0 ]
35
35
: ( logo . src . replace ( '/' , 'dist/' ) )
36
36
: ''
37
37
@@ -53,11 +53,10 @@ export async function generateOGImageMarkup(props: Route) {
53
53
/>
54
54
< div tw ="flex items-center justify-start w-full px-18 " style ="gap: 20px ">
55
55
< div tw ="self-start flex justify-center items-center ">
56
- ${ logo && ` <img
56
+ < img
57
57
tw ="w-28 h-28 "
58
- src="data:image/${ logo . format } ;base64,${ logoBase64 } "
59
- alt="logo"
60
- />` }
58
+ src ="data:image/${ logo ?. format === 'svg' ? 'svg+xml' : logo ?. format } ;base64, ${ logoBase64 } "
59
+ />
61
60
</ div >
62
61
63
62
< div tw ="flex flex-col " style ="gap: 10px ">
You can’t perform that action at this time.
0 commit comments