Spaces:
Sleeping
Sleeping
Download vite.config.ts from codebybrody/TwistedStreamingBrody: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/spaces/codebybrody/TwistedStreamingBrody/resolve/main/vite.config.ts
- Command line
-
hf download hf://spaces/codebybrody/TwistedStreamingBrody/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/spaces/codebybrody/TwistedStreamingBrody/resolve/main/vite.config.ts
583 Bytes
| import { defineConfig } from 'vite'; | |
| import react from '@vitejs/plugin-react'; | |
| // https://vitejs.dev/config/ | |
| export default defineConfig({ | |
| plugins: [react()], | |
| optimizeDeps: { | |
| exclude: ['lucide-react', 'sharp'], | |
| }, | |
| server: { | |
| port: 3000, | |
| proxy: { | |
| '/api': { | |
| target: 'http://localhost:7860', | |
| changeOrigin: true, | |
| }, | |
| '/hf-proxy': { | |
| target: 'https://codebydante-brodyfilestreambot.hf.space', | |
| changeOrigin: true, | |
| rewrite: (path) => path.replace(/^\/hf-proxy/, '') | |
| } | |
| }, | |
| }, | |
| }); | |