supermemory/apps/mcp/vite.config.dev.ts
Prasanna A P a95b9e9052 mcp: relocate enterprise-mcp as the public mcp revamp (apps/mcp)
Replaces the old apps/mcp with the enterprise-mcp code (functionality unchanged). package.json: worker supermemory-mcp, catalog deps pinned to explicit versions, portless dev:app. wrangler: name supermemory-mcp, route mcp.supermemory.ai, DO EnterpriseMCP. Builds + boots + OAuth discovery/401/worker-to-api verified locally.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 09:55:45 -07:00

26 lines
988 B
TypeScript

import { resolve } from "node:path"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
// DEV config: full HMR loop, deps from node_modules. Use with `bun run dev:widget`
// to iterate on the widget without rebuilding the Worker. Run the Worker via
// `bun run dev` separately when testing the full server↔widget flow.
export default defineConfig({
plugins: [tailwindcss(), react()],
root: resolve(__dirname, "src/widget"),
// Force a single react/react-dom copy. @supermemory/memory-graph (and its
// dep optimization) can otherwise pull react-dom through a different
// resolution path than the app's react, tripping react-dom's
// "Incompatible React versions" identity check. Prod doesn't need this —
// it externalizes both to one esm.sh URL.
resolve: {
dedupe: ["react", "react-dom"],
},
optimizeDeps: {
include: ["react", "react-dom", "react-dom/client"],
},
server: {
port: 5173,
},
})