DEV Community

loading...
Cover image for Gitpods and vuejs

Gitpods and vuejs

Ismael Garcia
Always ask questions to feed the curiosity and learn something new on the way. El respeto al derecho ajeno es la paz. Benito Juarez Garcia.
Updated on ・1 min read

The first problem that I found is my server returnthe fallowing error:

"Invalid Host header"

For my vuejs application that I created in the gitpod service
here is the solution to get the dev server running

In the vue.config.js add the fallowing note if you don't have a vue.config file
you need to create one.

module.exports={
    devServer: {
        disableHostCheck: true
    }
}
Enter fullscreen mode Exit fullscreen mode

Then run npm run serve and you are good to go.

Discussion (1)

Collapse
cloudgruber profile image
Gruber

Useful! I happened to stumble on the same problem, and implemented the same fix.