Single-page app with NodeCard, HotTierChart, SyncQueueCard, SnapshotTimeline, and ProjectBrowser. Hits the new HTTP/SSE API surface in claw-store serve (next commit). Built with Vite/Tailwind/lucide-react; consumed by mounting the dist/ output at /usr/share/claw-store/static (or wherever --static-dir points) and serving via claw-store serve.
20 lines
371 B
TypeScript
20 lines
371 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: { "@": path.resolve(__dirname, "./src") },
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': 'http://localhost:7700',
|
|
}
|
|
},
|
|
build: {
|
|
outDir: '../claw-store/static',
|
|
}
|
|
})
|