From 249e852e9ef8ff0f4998a43dd7624cd9fbb73c42 Mon Sep 17 00:00:00 2001 From: isabel Date: Thu, 25 Jun 2026 12:51:02 +0100 Subject: [PATCH] fix: build error --- astro.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/astro.config.ts b/astro.config.ts index 294f674..7e17764 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -68,6 +68,15 @@ export default defineConfig({ vite: { plugins: [tailwindcss()], + // opengraph.tsx uses satori's React JSX. astro has no react integration, + // so tell vite/oxc to transform the jsx itself (classic runtime matches + // the `import React` in that file). + esbuild: { + jsx: "transform", + jsxFactory: "React.createElement", + jsxFragment: "React.Fragment", + }, + css: { postcss: { plugins: [autoprefixer()], -- 2.51.2