- Created `qa-test-output-after-fix.txt` and `qa-test-output.txt` to log results of certificate page authentication tests. - Added `build.sh` for deterministic backend builds in CI, utilizing `go list` for efficiency. - Introduced `codeql_scan.sh` for CodeQL database creation and analysis for Go and JavaScript/TypeScript. - Implemented `dockerfile_check.sh` to validate Dockerfiles for base image and package manager mismatches. - Added `sourcery_precommit_wrapper.sh` to facilitate Sourcery CLI usage in pre-commit hooks.
34 lines
795 B
TypeScript
34 lines
795 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: true,
|
|
// Code splitting for better caching and parallel loading
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
// React ecosystem - changes rarely
|
|
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
|
|
// TanStack Query - changes rarely
|
|
'query': ['@tanstack/react-query'],
|
|
// Icons - large but cacheable
|
|
'icons': ['lucide-react'],
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|