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