ai-speech-build/vite.config.js

29 lines
629 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* @Author: 季万俊
* @Date: 2025-06-10 14:36:16
* @Description:
*/
import { defineConfig } from 'vite'
import { fileURLToPath, URL } from 'node:url'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
base: '',
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
host: '0.0.0.0', // 关键允许通过IP访问监听所有网络接口
port: 8080, // 可选指定端口默认5173
open: true, // 可选:启动时自动打开浏览器,
proxy: {
}
}
})