How to fix #26 with a React Project?
Hi @Funory! Thank you for reaching out.
As mentioned in https://www.gitpod.io/blog/gitpodify/#invalid-host-header, you can try several things:
--host 0.0.0.0 --disable-host-check flags with your webpack-dev-server or ng serve CLIdevServer: { host: '0.0.0.0', disableHostCheck: true } to your webpack.config.js or vue.config.js fileDANGEROUSLY_DISABLE_HOST_CHECK env variable to true in your projectHope this helps!
Setting the DANGEROUSLY_DISABLE_HOST_CHECK=true does it, thanks.
Setting the
DANGEROUSLY_DISABLE_HOST_CHECK=truedoes it, thanks.
Hi, where did you find that flag in react project? What source file?
Thanks.
@LuisTheDeveloper The DANGEROUSLY_DISABLE_HOST_CHECK environment variable is specific to create-react-app.
It's useful when you're using create-react-app but you have no control over what options are passed to webpack-dev-server.
Most helpful comment
Hi @Funory! Thank you for reaching out.
As mentioned in https://www.gitpod.io/blog/gitpodify/#invalid-host-header, you can try several things:
--host 0.0.0.0 --disable-host-checkflags with yourwebpack-dev-serverorng serveCLIdevServer: { host: '0.0.0.0', disableHostCheck: true }to yourwebpack.config.jsorvue.config.jsfileDANGEROUSLY_DISABLE_HOST_CHECKenv variable totruein your projectHope this helps!