Files
xevion.dev/web/svelte.config.js
Xevion 96595b073d refactor: replace sveltekit-og with native Satori implementation
- Remove @ethercorps/sveltekit-og and bits-ui dependencies
- Implement direct Satori + Resvg rendering pipeline
- Add OgImage.svelte component for template generation
- Create /internal/ogp preview page for development
- Load fonts from node_modules via fs for production compatibility
- Add 2s startup delay before OG image regeneration
2026-01-05 15:15:08 -06:00

25 lines
550 B
JavaScript

import adapter from "svelte-adapter-bun";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
inlineStyleThreshold: 1000,
kit: {
adapter: adapter({
out: "build",
precompress: {
brotli: true,
gzip: true,
files: ["html", "js", "json", "css", "svg", "xml", "wasm"],
},
serveAssets: false,
}),
alias: {
$components: "src/lib/components",
},
},
};
export default config;