Spaces:
Runtime error
Runtime error
Download frontend-react/vite.config.js from Amitkasar/ai-api-testing: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/Amitkasar/ai-api-testing/resolve/main/frontend-react/vite.config.js
- Command line
-
hf download hf://spaces/Amitkasar/ai-api-testing/frontend-react/vite.config.js
-
curl -L -o vite.config.js https://huggingface.co/spaces/Amitkasar/ai-api-testing/resolve/main/frontend-react/vite.config.js
464 Bytes
| import { defineConfig } from 'vite' | |
| import react from '@vitejs/plugin-react' | |
| import tailwindcore from '@tailwindcss/vite' | |
| const BACKEND = process.env.VITE_BACKEND_URL || 'http://localhost:8001' | |
| export default defineConfig({ | |
| plugins: [react(), tailwindcore()], | |
| server: { | |
| proxy: { | |
| '/api': { | |
| target: BACKEND, | |
| changeOrigin: true, | |
| }, | |
| '/uploads': { | |
| target: BACKEND, | |
| changeOrigin: true, | |
| }, | |
| }, | |
| }, | |
| }) | |