Install
Adding MediaKit/og to SolidStart
Install
pnpm add @solid-mediakit/og
Plugin Installation
Add the plugin to your config, so that the compiler can resolve and extract DynamicImage
elements.
import { defineConfig } from "@solidjs/start/config";import { vitePlugin as OGPlugin } from "@solid-mediakit/og/unplugin";export default defineConfig({ vite: { plugins: [OGPlugin()] }});
Config complete! To see how to add dynamic and opengraph images to your app, visit DynamicImage
Last updated: 5/30/25, 9:16 AM