t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/Cloudflare/Website/vite-fixture/vite.config.ts
Julius Marminge 108e01746c
Upgrade Effect and Alchemy betas (#4643)
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <codex@users.noreply.github.com>
2026-07-27 16:21:02 +02:00

19 lines
602 B
TypeScript

import { defineConfig } from "vite";
// `Cloudflare.Website.Vite` declares an `ssr` environment but doesn't set a
// worker entry by default. For non-framework projects (no React/Vue
// plugin to inject one), Vite 8 errors out with "rollupOptions.input
// should not be an html file when building for SSR". We point the SSR
// build at our minimal worker entry so the cloudflare-vite-plugin can
// wrap it into the worker bundle.
export default defineConfig({
environments: {
ssr: {
build: {
rollupOptions: {
input: "./src/worker.ts",
},
},
},
},
});