Files
clawstor/dashboard/vite.config.ts
T
Omar Sobh 7f57b6e3bd feat(dashboard): React+Vite SPA for the claw-store HTTP API
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.
2026-06-28 12:52:46 +00:00

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',
}
})