Nuxt 开发环境不支持ip访问?

传送门:https://nuxtjs.org/faq/host-port

开发模式下不支持ip访问?

打开package.json,添加如下配置,然后重启即可。

复制代码
"config": {
      "nuxt": {
          "host": "0.0.0.0",
          "port": "3000"
      }
}

原文地址:https://www.cnblogs.com/CyLee/p/9626982.html