DEV Community

Cover image for Gitpods and vuejs
Ismael Garcia
Ismael Garcia

Posted on • Edited on

1 1

Gitpods and vuejs

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.

Top comments (2)

Collapse
 
cloudgruber profile image
Gruber

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

Collapse
 
leandroslopes profile image
Leandro S Lopes

This configuration is obsolete. How can I solve this problem today?

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay