1
0
Fork 0

Migrate Traefik Proxy dashboard UI to React

This commit is contained in:
Gina A. 2025-05-28 11:26:04 +02:00 committed by GitHub
parent 4790e4910f
commit f16fff577a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
324 changed files with 28303 additions and 19567 deletions

28
webui/vite.config.ts Normal file
View file

@ -0,0 +1,28 @@
/// <reference types="vitest" />
/// <reference types="vite/client" />
import react from '@vitejs/plugin-react'
import { defineConfig, loadEnv } from 'vite'
import viteTsconfigPaths from 'vite-tsconfig-paths'
export default ({ mode }: { mode: string }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) }
return defineConfig({
base: process.env.VITE_APP_BASE_URL || '',
plugins: [react(), viteTsconfigPaths()],
server: {
open: 'index.dev.html',
port: 3000,
},
build: {
emptyOutDir: true,
outDir: './static',
},
test: {
environment: 'jsdom',
globals: true,
setupFiles: './test/setup.ts',
},
})
}