Download frontend/vite.config.js from ilhamdev/quote-api: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/ilhamdev/quote-api/resolve/main/frontend/vite.config.js
- Command line
-
hf download hf://spaces/ilhamdev/quote-api/frontend/vite.config.js
-
curl -L -o vite.config.js https://huggingface.co/spaces/ilhamdev/quote-api/resolve/main/frontend/vite.config.js
429 Bytes
| import { defineConfig } from 'vite'; | |
| export default defineConfig({ | |
| server: { | |
| port: 5173, | |
| proxy: { | |
| '/generate': { | |
| target: 'https://ilhamdev-quote-api.hf.space', | |
| changeOrigin: true, | |
| rewrite: () => '/', | |
| }, | |
| '/api': { | |
| target: 'https://ilhamdev-quote-api.hf.space', | |
| changeOrigin: true, | |
| rewrite: (path) => path.replace(/^\/api/, ''), | |
| }, | |
| }, | |
| }, | |
| }); | |