char-slop/berry

multipurpose self-modifiable agentic harness

git clone https://git.t4t.associates/char-slop/berry

Charlotte Sominitial commite6df845

main
531 B19 linesraw
1import aftercare from "@char/aftercare/vite";
2import deno from "@deno/vite-plugin";
3import { defineConfig } from "vite";
4
5const backend = `http://127.0.0.1:${Deno.env.get("BERRY_PORT") ?? 8787}`;
6
7export default defineConfig({
8  cacheDir: "../node_modules/.vite",
9  plugins: [deno(), aftercare()],
10  server: {
11    // the app imports @berry/api, from outside web/
12    fs: { allow: [".."] },
13    proxy: {
14      "/api": backend,
15      "/ext": backend,
16      "/ws": { target: backend.replace("http", "ws"), ws: true },
17    },
18  },
19});