this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix

alice eac50013 e5b06991

+18 -11
+18 -11
src/app/post/[rkey]/page.tsx
··· 148 148 {...props} 149 149 /> 150 150 ), 151 - img: ({ src, alt }) => ( 152 - <span className="relative mt-8 block aspect-video w-full"> 153 - <Image 154 - src={src!} 155 - alt={alt!} 156 - className="object-contain" 157 - quality={90} 158 - fill 159 - /> 160 - </span> 161 - ), 151 + img: ({ src, alt }) => { 152 + if (!src || typeof src !== "string") { 153 + // Only Next/Image-compatible sources render here; fall back otherwise. 154 + return null; 155 + } 156 + 157 + return ( 158 + <span className="relative mt-8 block aspect-video w-full"> 159 + <Image 160 + src={src} 161 + alt={alt ?? ""} 162 + className="object-contain" 163 + quality={90} 164 + fill 165 + /> 166 + </span> 167 + ); 168 + }, 162 169 }} 163 170 > 164 171 {post.value.content}