mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 09:13:14 +00:00
Generate the /dashboard/api/* proxy destination at build time from LANGGRAPH_BACKEND_URL via the Vercel Build Output API, instead of hardcoding it in ui/vercel.json. This lets the dev and main branches stay byte-identical (required by the fast-forward-only prod promotion) while each Vercel project proxies to its own LangGraph backend purely via its own env var — so both the dev and prod dashboards can be git-linked. - ui/vercel.json: drop the hardcoded rewrites; buildCommand -> bun run vercel-build - ui/package.json: add vercel-build = vite build && node scripts/build-vercel-output.mjs - ui/scripts/build-vercel-output.mjs: emit .vercel/output/config.json with [ proxy /dashboard/api/* -> $LANGGRAPH_BACKEND_URL, filesystem, SPA fallback ]; throws if LANGGRAPH_BACKEND_URL is unset so a misconfig fails the build. Keeps the app same-origin (no CORS/auth change); preserves the _shell.html SPA fallback. Set LANGGRAPH_BACKEND_URL per Vercel project (All Environments).
70 lines
No EOL
2.2 KiB
JSON
70 lines
No EOL
2.2 KiB
JSON
{
|
|
"name": "open-swe-dashboard",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite dev --port 3000",
|
|
"build": "vite build",
|
|
"vercel-build": "vite build && node scripts/build-vercel-output.mjs",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"lint": "eslint",
|
|
"format": "prettier --write \"**/*.{ts,tsx,js,jsx}\"",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@base-ui/react": "^1.4.1",
|
|
"@fontsource-variable/inter": "^5.2.8",
|
|
"@langchain/core": "^1.1.48",
|
|
"@langchain/langgraph-sdk": "^1.9.21",
|
|
"@langchain/react": "^1.0.22",
|
|
"@monaco-editor/react": "^4.7.0",
|
|
"@phosphor-icons/react": "^2.1.10",
|
|
"@pierre/diffs": "^1.2.1",
|
|
"@pierre/trees": "1.0.0-beta.4",
|
|
"@tailwindcss/vite": "^4.2.1",
|
|
"@tanstack/react-devtools": "^0.10.0",
|
|
"@tanstack/react-query": "^5.100.10",
|
|
"@tanstack/react-query-devtools": "^5.100.10",
|
|
"@tanstack/react-router": "^1.167.4",
|
|
"@tanstack/react-router-devtools": "^1.166.9",
|
|
"@tanstack/react-router-ssr-query": "^1.166.9",
|
|
"@tanstack/react-start": "^1.166.15",
|
|
"@tanstack/router-plugin": "^1.166.13",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"lucide-react": "^1.16.0",
|
|
"monaco-editor": "^0.52.2",
|
|
"nitro": "latest",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"react-icons": "^5.6.0",
|
|
"shadcn": "^4.7.0",
|
|
"shiki": "^4.1.0",
|
|
"streamdown": "^2.5.0",
|
|
"tailwind-merge": "^3.6.0",
|
|
"tailwindcss": "^4.2.1",
|
|
"tw-animate-css": "^1.4.0",
|
|
"vite-tsconfig-paths": "^5.1.4"
|
|
},
|
|
"devDependencies": {
|
|
"@tanstack/devtools-vite": "^0.6.0",
|
|
"@tanstack/eslint-config": "^0.4.0",
|
|
"@testing-library/dom": "^10.4.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/node": "^22.19.15",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^5.2.0",
|
|
"jsdom": "^27.4.0",
|
|
"prettier": "^3.8.1",
|
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.3.5",
|
|
"vite-plugin-pwa": "^1.3.0",
|
|
"vitest": "^4.1.0",
|
|
"web-vitals": "^5.1.0",
|
|
"workbox-build": "^7.4.1",
|
|
"workbox-window": "^7.4.1"
|
|
}
|
|
} |