quote-api / frontend /vite.config.js
ilhamdev's picture
feat: redesign to neubrutalism UI and secure Hugging Face Space from rate/resource limits
f6522be
Raw History Blame Contribute Delete
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/, ''),
},
},
},
});