1import { defineConfig } from "vite";
2import react from "@vitejs/plugin-react";
3import { numblDefine } from "../../vite.shared";
5// The vault serves a site either at the root of an origin of its own (when the
6// repository has a site label) or under /<collection>/<repo>/site/, so the base
7// path is not knowable here. CI reads it from configure-pages and passes it in.
8export default defineConfig({
9 base: process.env.DEPLOY_BASE ?? "/",
10 plugins: [react()],
11 define: numblDefine(),
12 worker: { format: "es" },
13});