Hello,
Recently, I discovered the issue when trying to start the PWA Studio development environment.
Invalid host header
command used: yarn watch
To fix this, you can add the following to the node_modules/@magento/pwa-buildpack/lib/WebpackTools/PWADevServer.js
disableHostCheck: true,
Save the file, start yarn watch again and enjoy development that can refresh content without compiling.
I hope this helps.