Closed huilensolis closed 1 month ago
Hi,
It is probably a good idea to take this satori as well. https://github.com/vercel/satori/issues
There's a playground there, https://og-playground.vercel.app/:
So, it looks like, you need flex-end
, rather. Though it might be worth asking them, why end
is not supported, it might have to do with the flex box algorithm.
My bad, I should have opened this issue on satori.
glad flex-end works fine.
I'm opening an issue on satori :smile:
Awesome, then maybe close this issue. Though end
and flex-end
are exactly not the same, there are subtle differences, and those might be the reason why satori has decided to not implement that.
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Link to the code that reproduces this issue
https://github.com/Huilensolis/next-js-bug-report
To Reproduce
Element
tabcontent
attribute and open it on a new tabopengraph-image.tsx
filejustifyContent
to "center"// Route segment config export const runtime = "edge";
// Image metadata export const alt = "Huilen Solis's Blog"; export const size = { width: 1200, height: 630, };
export const contentType = "image/png";
// Image generation export default async function Image({ params: { slug }, }: { params: { slug: string }; }) { return new ImageResponse( ( <div style={{ background: "rgb(10 10 10 / 1)", color: "rgb(250 250 250 / 1)", width: "100%", height: "100%", display: "flex", alignItems: "center", -- justifyContent: "start", ++ justifyContent: "center", padding: "2rem", }}
note: sometimes the server changes the open graph-image param between renders or changes, so be careful not to look at an old link with an old image id. check the meta element from the page dom tree head before navigating to the open graph image again. the
Current vs. Expected behavior
it should not crash if the styles are different than the example provided on the next js documentation
Provide environment information
Which area(s) are affected? (Select all that apply)
Metadata
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I haven't tried this on production, but I guess it will behave in the same way