项目运行之后,想要通过局域网ip访问项目,无法访问:

查了一下问题,没有配置netWork,在vite.config.ts如下配置,就可以了
server: {
host: '0.0.0.0'
}

有问题欢迎交流!!!
- AT_arc125_c [ARC125C] LIS to Original Sequence 题解
- 安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason
- vscode错误:Unable to connect to VS Code server: Error in request.
- Modelsim add to schemetic报错及解决
- fish和pacman:“error: Unable to read input file: 是一个目录”报错的处理
- 初中英语优秀范文100篇-056I have the courage to accept the challenge-我有勇气接受挑战
- 1.12_redis 的存取在最后 晚上_浙江本地环境的header不能用线上的_header中host和refer分别代表什么意思?_模型的save()参数是数组怎么理解?
- mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
- redis报错MISCONF Errors writing to the AOF file: No space left on device,磁盘满无法写入数据报错
- 【LeetCode 】练习str_to_date函数;over(rows between CURRENT ROW AND 2 following)实现【当月和接下来2个月】滑动窗口
本栏目推荐文章