/ proof-of-concept / plate-dynamics-lab-2
Sign in
proof-of-concept / plate-dynamics-lab-2
plate-dynamics-lab-2 / apps / lab / vite.config.ts
13 lines · 520 BCodeBlameHistory
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});
↑↓ move↵openescclose