This commit is contained in:
quantulr
2024-01-15 17:08:05 +08:00
commit 07b0d943e3
18 changed files with 2510 additions and 0 deletions

17
vite.config.ts Normal file
View File

@ -0,0 +1,17 @@
import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: true,
proxy: {
'/api': {
target: 'http://101.35.127.74:3000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
}
}
})