M
M
mrSeller2019-06-08 09:10:33
webpack
mrSeller, 2019-06-08 09:10:33

How to test nuxt app on another device?

In Vue-CLI, when you start the dev server, you are given a second address that you can open from another device (via LAN, of course) and test the build on another device.
For some reason, there is no such thing in the Nuxt assembly.
Is it possible to set it up and how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Martovitskiy, 2019-06-08
@mrSeller

Set host. There is an example in the manual
Add to

" scripts " : {
     " dev " : " HOST = 0.0.0.0 nuxt " ,
  }

You can try replacing HOST 0.0.0.0 with your internet address. for example something like this 192.168.1.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question