mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
14 lines
341 B
JavaScript
14 lines
341 B
JavaScript
const { defineConfig } = require('@vue/cli-service');
|
|
const dotenv = require('dotenv');
|
|
|
|
dotenv.config();
|
|
|
|
module.exports = defineConfig({
|
|
devServer: {
|
|
// Bug 修复:将代理配置为环境变量中定义的 API 基础 URL
|
|
proxy: process.env.VUE_APP_API_BASE_URL,
|
|
client: {
|
|
overlay: false,
|
|
},
|
|
}
|
|
})
|