mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
22 lines
511 B
JavaScript
22 lines
511 B
JavaScript
import {defineConfig} from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
server: {
|
|
open: true, // 自动启动浏览器
|
|
host: "0.0.0.0", // localhost
|
|
port: 8002, // 端口号
|
|
https: false,
|
|
hmr: {overlay: false},
|
|
proxy: {
|
|
"^/(api)": {
|
|
target: "http://127.0.0.1:8002",
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
},
|
|
base: '/'
|
|
})
|