J
J
jondoeonoe2018-08-03 02:55:44
webpack
jondoeonoe, 2018-08-03 02:55:44

How to resolve Invalid Host header error for now sh (vue cli)?

Goodnight. There is a project on vue cli https://github.com/TchernyavskyDaniil/vue-exs/tree...
I'm trying to deploy using now sh
I'm writing now
The project is deploying, but the page shows Invalid Host header
Please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nobilix, 2019-05-05
@nobilix

you need the option
disableHostCheck: true
https://webpack.js.org/configuration/dev-server/#d...
In Vue CLI 3, webpack options are set in the vue.config.js file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question