| 1 | import { octane } from "@octanejs/vite-plugin"; |
| 2 | import { defineConfig } from "vite"; |
| 3 | |
| 4 | // Client-only Octane app: NO `octane.config.ts` (no routes, no adapter) — |
| 5 | // just the `octane()` compiler plugin. This is the documented |
| 6 | // `Cloudflare.Website.Vite` path for route-less Octane apps: the plugin |
| 7 | // composes with the injected Cloudflare Vite plugin and the project builds |
| 8 | // as a plain Vite SPA (assets only, no worker entry). |
| 9 | export default defineConfig({ |
| 10 | plugins: [octane()], |
| 11 | build: { target: "esnext" }, |
| 12 | }); |