mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 09:29:38 +02:00
Finishes the remaining EFFECT_NATIVE_REWRITE_PLAN stages in one verified slice: - fastify, @fastify/websocket, commander, zod removed from all package manifests - legacy @modelcontextprotocol/sdk stdio server deleted; effect/unstable/ai McpServer is canonical - no ManagedRuntime or Effect.runPromise program facades remain in production source - gateway server/rpc-contract and client rpc/socket moved onto Effect v4 native http/rpc/socket layers Gates (force-run, no cache): check:tsgo, build, test (96 tests / 11 tasks) all green. Native-class inventory: zero blocking production classes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
45 lines
1 KiB
TypeScript
45 lines
1 KiB
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import path from "path";
|
|
|
|
const isWorkbenchQa = process.env.WORKBENCH_QA === "1";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
{
|
|
name: "trustgraph-workbench-qa-otel",
|
|
configureServer(server) {
|
|
if (!isWorkbenchQa) return;
|
|
server.middlewares.use("/otel", (_request, response) => {
|
|
response.statusCode = 204;
|
|
response.end();
|
|
});
|
|
},
|
|
},
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: isWorkbenchQa
|
|
? {}
|
|
: {
|
|
proxy: {
|
|
"/api/v1/rpc": {
|
|
target: "ws://localhost:8088/",
|
|
ws: true,
|
|
},
|
|
"/api/v1": {
|
|
target: "http://localhost:8088/",
|
|
},
|
|
"/otel": {
|
|
target: "http://localhost:4328/",
|
|
rewrite: (p) => p.replace(/^\/otel/, ""),
|
|
},
|
|
},
|
|
},
|
|
});
|