Download frontend-react/vite.config.ts from Aarav13/AuthriX: direct link, hf CLI and curl.
- Browser
- Download file 719 Bytes
-
https://huggingface.co/spaces/Aarav13/AuthriX/resolve/main/frontend-react/vite.config.ts
- Command line
-
hf download hf://spaces/Aarav13/AuthriX/frontend-react/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/spaces/Aarav13/AuthriX/resolve/main/frontend-react/vite.config.ts
719 Bytes
| import { defineConfig } from 'vite' | |
| import react from '@vitejs/plugin-react' | |
| import tailwindcss from '@tailwindcss/vite' | |
| export default defineConfig({ | |
| plugins: [react(), tailwindcss()], | |
| server: { | |
| proxy: { | |
| '/analyze': 'http://localhost:8000', | |
| '/analyze-url': 'http://localhost:8000', | |
| '/health': 'http://localhost:8000', | |
| }, | |
| }, | |
| build: { | |
| chunkSizeWarningLimit: 2000, | |
| rollupOptions: { | |
| output: { | |
| manualChunks(id) { | |
| if (id.includes('node_modules/three')) return 'three'; | |
| if (id.includes('node_modules/postprocessing')) return 'postprocessing'; | |
| if (id.includes('node_modules/face-api')) return 'faceapi'; | |
| }, | |
| }, | |
| }, | |
| }, | |
| }) | |