shepherdjerred / astro-opengraph-images

Generate Open Graph images for your Astro site.
https://www.npmjs.com/package/astro-opengraph-images
GNU General Public License v3.0
1 stars 1 forks source link

Open Graph is not generated #24

Open thaarrtt opened 6 days ago

thaarrtt commented 6 days ago

its not works

example

export default defineConfig({ site: 'https://******.com/', server: { cors: { origin: ['https://blog.****.com'], methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], allowedHeaders: ['Content-Type', 'Authorization'], credentials: true } }, integrations: [ sitemap(), tailwind(), partytown(), playformCompress(), opengraphImages({ options: { fonts: [ { name: "Inter", weight: 400, style: "latin", data: fs.readFileSync("node_modules/@fontsource/inter/files/inter-latin-400-normal.woff"), }, ], }, render: presets.blackAndWhite, }), ], output: "hybrid", adapter: node({ mode: "standalone" }) });

shepherdjerred commented 6 days ago

Hi!

This is likely because you're using Astro SSR. This has only been tested with static site builds. This is noted on the README.

I'll see if I can get this project working for SSR.