初始化fateverse

This commit is contained in:
wenhua
2023-10-13 16:23:20 +08:00
commit 6f0949e432
47 changed files with 8371 additions and 0 deletions

40
vite.config.ts Normal file
View File

@@ -0,0 +1,40 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [
react(),
],
resolve: {
alias: {
'@': 'src/'
}
},
build: {
minify: 'esbuild',
terserOptions: {
compress: {
drop_console: false,
drop_debugger: false,
}
}
},
server: {
host: '0.0.0.0',
open: true,
cors: true,
port: 7777,
hmr:{
overlay: false
},
proxy: {
'/api': {
target: 'http://gateway.feashow.cn',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
}
}
})