2026-03-05 10:49:46 +08:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
import { resolve } from 'path'
|
2026-03-11 14:26:33 +08:00
|
|
|
import monacoEditorPlugin from 'vite-plugin-monaco-editor'
|
2026-03-05 10:49:46 +08:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
2026-03-11 14:26:33 +08:00
|
|
|
plugins: [
|
|
|
|
|
vue(),
|
|
|
|
|
(monacoEditorPlugin as any).default({})
|
|
|
|
|
],
|
2026-03-05 10:49:46 +08:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': resolve(__dirname, 'src')
|
|
|
|
|
}
|
2026-03-06 09:29:16 +08:00
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
fs: {
|
|
|
|
|
allow: ['..']
|
2026-03-12 10:49:44 +08:00
|
|
|
},
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'http://localhost:8082',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
ws: true
|
|
|
|
|
},
|
|
|
|
|
'/model': {
|
|
|
|
|
target: 'http://localhost:8082',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
ws: true
|
|
|
|
|
}
|
2026-03-06 09:29:16 +08:00
|
|
|
}
|
2026-03-05 10:49:46 +08:00
|
|
|
}
|
|
|
|
|
})
|