chore: add comment proxy

This commit is contained in:
菲鸽 2024-04-18 17:03:05 +08:00
parent 28caa1dea3
commit 576df18a23

View File

@ -117,6 +117,7 @@ export default ({ command, mode }) => {
host: '0.0.0.0',
hmr: true,
port: Number.parseInt(VITE_APP_PORT, 10),
// 仅 H5 端生效其他端不生效其他端走build不走devServer)
proxy: {
'/api': {
target: VITE_SERVER_BASEURL,