3723c5bf93
- Create RightPanel component with browser/artifacts tab switching - Replace App.tsx with 3-column layout (auth loading/login/app states) - Replace main.tsx with globals.css import (remove index.css) - Remove Vite template files (App.css, index.css, assets/react.svg) - Fix LoginPage.tsx FormEvent type-only import for verbatimModuleSyntax - Fix vite.config.ts to use vitest/config for proper test property typing - Add tests: RightPanel (10 tests), App rendering states (7 tests)
26 lines
475 B
TypeScript
26 lines
475 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: true,
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
},
|
|
})
|