Files
saltbo__agent-kanban/vite.config.ts
jarvis a2fa54a729 feat!: rebuild Agent Kanban for Realmroot Toolbox
Replace the v1 Agent/Machine runtime and CLI architecture with the v2 Resource Server, AMA-backed projections, task lifecycle, session observation, BDD specifications, and a single-package layered codebase.

BREAKING CHANGE: remove the v1 CLI, internal Agent/Machine runtime entities, workspace layout, and legacy runtime coordination APIs.
2026-09-02 00:17:52 -04:00

31 lines
1.0 KiB
TypeScript

import { execSync } from "node:child_process";
import path from "node:path";
import { cloudflare } from "@cloudflare/vite-plugin";
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
const gitSha = execSync("git rev-parse --short HEAD").toString().trim();
export default defineConfig({
plugins: [react(), tailwindcss(), cloudflare()],
server: {
port: 6265,
// Cloud smoke runs expose the dev server through a cloudflared quick
// tunnel so sandbox-hosted agents can call the AK API. A named tunnel
// (e.g. bodev.agent-kanban.dev) gives a stable dev origin.
allowedHosts: [".trycloudflare.com", ".agent-kanban.dev"],
},
define: {
__APP_VERSION__: JSON.stringify(gitSha),
},
resolve: {
dedupe: ["react", "react-dom", "react/jsx-runtime", "react/jsx-dev-runtime"],
alias: {
"@": path.resolve(__dirname, "./src"),
"@shared": path.resolve(__dirname, "./shared"),
"@server": path.resolve(__dirname, "./server"),
},
},
});