Files
saltbo__agent-kanban/vite.e2e.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

39 lines
1.2 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 port = Number(process.env.VITE_DEV_PORT) || 6265;
const origin = `http://localhost:${port}`;
const gitSha = execSync("git rev-parse --short HEAD").toString().trim();
export default defineConfig({
plugins: [
react(),
tailwindcss(),
cloudflare({
configPath: "./wrangler.toml",
persistState: { path: path.resolve(__dirname, ".wrangler/state") },
config: (config) => ({
vars: {
...config.vars,
AK_PUBLIC_ORIGIN: origin,
ALLOWED_HOSTS: `localhost:${port}`,
},
}),
}),
],
server: { port, allowedHosts: ["localhost"] },
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"),
},
},
});