Logo
Explore Help
Register Sign In
jarvis/dd0c
1
0
Fork 0
You've already forked dd0c
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
6c97ce0547c6ba2f83cd8b4d7d925a51890fceb2
dd0c/products/01-llm-cost-router/ui/vite.config.ts

16 lines
264 B
TypeScript
Raw Normal View History

Add dd0c/route Dashboard UI: React + Vite + Tailwind SPA - Layout with sidebar navigation (Dashboard, Rules, Keys, Settings) - Dashboard page: stat cards, cost savings area chart (Recharts), model usage table - Rules page: routing rules CRUD with modal editor, strategy/complexity/model matching - Keys page: API key generation, copy-once reveal, revocation, quick-start code snippet - Settings page: org info, provider config, danger zone - API client (SWR + fetch wrapper) with full TypeScript types - dd0c dark theme: indigo primary, cyan accent, dark surfaces - Vite proxy config for local dev against API on :3000
2026-03-01 02:36:32 +00:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': 'http://localhost:3000',
},
},
build: {
outDir: 'dist',
},
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 87ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API