1import { defineConfig } from "vite";
2
3// The client environment's default entry is `index.html`; this app is
4// worker-rendered, so point the client build at a tiny JS entry instead
5// (which also imports across the workspace boundary, exercising the
6// collector's external-workspace detection in a second environment).
7export default defineConfig({
8 environments: {
9 client: {
10 build: {
11 rollupOptions: {
12 input: "src/client.ts",
13 },
14 },
15 },
16 },
17});