Vite 配置 IP,解决‘’Network: use --host to expose‘’ 想要成为前端大佬 2023-01-24 2,526 阅读1分钟 vite 启动后出现 “ Network: use --host to expose ” 是因为IP没有做配置,所以不能从IP启动,需要在 vite.config.js做相应配置: 在 vite.config.js中添加 server.host 为 0.0.0.0 保存后显示