metatron-open-seo/web/vite.config.ts
Ben Senescu a0ef7412f2
website: Create website (#19)
* Add website

* save

* chore: validate website in CI and fix workers typing
2026-03-11 23:23:47 -04:00

35 lines
797 B
TypeScript

import react from "@vitejs/plugin-react";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import { cloudflare } from "@cloudflare/vite-plugin";
import { defineConfig } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";
import tailwindcss from "@tailwindcss/vite";
import mdx from "fumadocs-mdx/vite";
export default defineConfig({
server: {
port: 4322,
},
ssr: {
resolve: {
conditions: ["worker", "import", "module", "default"],
},
},
plugins: [
mdx(await import("./source.config")),
tailwindcss(),
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
cloudflare({
viteEnvironment: { name: "ssr" },
}),
tanstackStart({
prerender: {
enabled: true,
},
}),
react(),
],
});