mirror of https://github.com/chaitin/PandaWiki.git
23 lines
432 B
TypeScript
23 lines
432 B
TypeScript
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
hmr: true,
|
|
proxy: {
|
|
"/api": "http://10.10.18.71:9998",
|
|
"/share": "http://10.10.18.71:9998",
|
|
"/static-file": "http://10.10.18.71:9998",
|
|
},
|
|
},
|
|
plugins: [
|
|
react(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "src"),
|
|
},
|
|
},
|
|
})
|