Download streaming-react-app/vite.config.ts from facebook/seamless-streaming: direct link, hf CLI and curl.
- Browser
- Download file 444 Bytes
-
https://huggingface.co/spaces/facebook/seamless-streaming/resolve/refs%2Fpr%2F21/streaming-react-app/vite.config.ts
- Command line
-
hf download hf://spaces/facebook/seamless-streaming@refs/pr/21/streaming-react-app/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/spaces/facebook/seamless-streaming/resolve/refs%2Fpr%2F21/streaming-react-app/vite.config.ts
444 Bytes
| import { defineConfig } from 'vite'; | |
| import react from '@vitejs/plugin-react'; | |
| // https://vitejs.dev/config/ | |
| export default defineConfig(({ command }) => { | |
| let define = {}; | |
| if (command === 'serve') { | |
| define = { | |
| global: {}, | |
| }; | |
| } | |
| return { | |
| plugins: [react()], | |
| define: define, | |
| server: { | |
| proxy: { | |
| '/ws': { | |
| target: 'ws://localhost:7860', | |
| ws: true | |
| } | |
| }, | |
| }, | |
| } | |
| }); | |