waveterm/tsunami/frontend/vite.config.ts
Mike Sawka e7cd584659
tsunami framework (waveapps v2) (#2315)
Huge PR.  135 commits here to rebuild waveapps into the "Tsunami" framework.

* Simplified API
* Updated system.md prompt
* Basic applications building and running
* /api/config and /api/data support
* tailwind styling
* no need for async updates
* goroutine/timer primitives for async routing handling
* POC for integrating 3rd party react frameworks (recharts)
* POC for server side components (table.go)
* POC for interacting with apps via /api/config (tsunamiconfig)

Checkpoint.  Still needs to be tightly integrated with Wave (lifecycle, AI interaction, etc.) but looking very promising 🚀
2025-09-11 14:25:07 -07:00

34 lines
887 B
TypeScript

// Copyright 2025, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": "/src",
},
},
server: {
port: 12025,
open: true,
proxy: {
"/api": {
target: "http://localhost:12026",
changeOrigin: true,
},
"/assets": {
target: "http://localhost:12026",
changeOrigin: true,
},
},
},
build: {
outDir: "dist",
minify: process.env.NODE_ENV === "development" ? false : "esbuild",
sourcemap: process.env.NODE_ENV === "development" ? true : false,
},
});