Download apps/web-antd/vite.config.mts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/web-antd/vite.config.mts
- Command line
-
hf download hf://spaces/binhugg3/admin/apps/web-antd/vite.config.mts
-
curl -L -o vite.config.mts https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/web-antd/vite.config.mts
439 Bytes
| import { defineConfig } from '@vben/vite-config'; | |
| export default defineConfig(async () => { | |
| return { | |
| application: {}, | |
| vite: { | |
| server: { | |
| proxy: { | |
| '/api': { | |
| changeOrigin: true, | |
| rewrite: (path) => path.replace(/^\/api/, ''), | |
| // mock代理目标地址 | |
| target: 'http://localhost:5320/api', | |
| ws: true, | |
| }, | |
| }, | |
| }, | |
| }, | |
| }; | |
| }); | |