saguijs / sagui

:monkey: Front-end tooling in a single dependency

Home Page:http://sagui.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allowing dev server access from iOS devices

danevron opened this issue · comments

Currently going to a machine IP instead of localhost results in "Invalid Host header" message on the page.
As a result we are unable to view pages on iOS devices.

I've tried extending Webpack config with the following which should help according to Webpack but without success.

    devServer: {
      host: '0.0.0.0',
      disableHostCheck: true
    },

I suspect an older Webpack version is used but not sure.

Hi! Thanks for reaching out. This is a known issue due to a change in the default configuration in Webpack, but it hasn't yet been explicitly documented how to fix this in Sagui. I opened a PR for that:

#400

The configuration that needs to be set is:

develop: { 
  disableHostCheck: true
}

For reference, what version of Sagui are you using?

@pirelenito - Yes it did!
@xaviervia, @pirelenito - Thank you both for the swift (and helpful) reply.