Invalid host header PWA Studio

Hello,

Recently, I discovered the issue when trying to start the PWA Studio development environment.

Invalid host header

command used: yarn watch

alt

To fix this, you can add the following to the node_modules/@magento/pwa-buildpack/lib/WebpackTools/PWADevServer.js

disableHostCheck: true,  

alt

Save the file, start yarn watch again and enjoy development that can refresh content without compiling.

I hope this helps.