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

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

 

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

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

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

 

posted @ 2018-09-11 12:59  贝尔塔猫  阅读(785)  评论(0编辑  收藏  举报