How to test nuxt app on another device?

In Vue-CLI when starting dev server, receives a second address that you can access from another device (through the LAN, of course) and test the build on a different device.

In Nuxt-build this, why-that, no.
Is it possible to configure and how?
March 23rd 20 at 19:35
2 answers
March 23rd 20 at 19:37
Solution
To configure the host. In the manual there is an example
Add in
package.json
"scripts" : {
 "dev" : "HOST = 0.0.0.0 nuxt" ,
 }

You can try to replace the HOST 0.0.0.0 on your web address. for example something like this 192.168.1.1
March 23rd 20 at 19:39
Solution
Gaining ifconfig get your ip, port and so you know, then open on another device at ip:port. If not closed by firewall etc., it will work. Sobsno, Vue Kli does the same thing, just finds out the local ip and it adds the port.

Find more questions by tags Vue.jsWebpack