Download client/vite.config.js from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/client/vite.config.js
- Command line
-
hf download hf://spaces/new-arc/vector/client/vite.config.js
-
curl -L -o vite.config.js https://huggingface.co/spaces/new-arc/vector/resolve/main/client/vite.config.js
579 Bytes
| import { defineConfig } from "vite"; | |
| import react from "@vitejs/plugin-react"; | |
| import path from "path"; | |
| import { fileURLToPath } from "url"; | |
| const __filename = fileURLToPath(import.meta.url); | |
| const __dirname = path.dirname(__filename); | |
| export default defineConfig({ | |
| plugins: [react()], | |
| server: { | |
| proxy: { | |
| "/chat": "http://localhost:3001", | |
| "/models": "http://localhost:3001" | |
| } | |
| }, | |
| build: { | |
| outDir: path.resolve(__dirname, "../server/public"), | |
| emptyOutDir: true, | |
| chunkSizeWarningLimit: 1000 // Suppress warning for chunks up to 1MB | |
| } | |
| }); | |