[React/Rails] WebSocket connection to 'ws://localhost:3000/ws' failed が発生してレスポンスが受け取れないRailserrorDockerReact 動作環境 MacOS M1 BigSur 11.6 Docker "20.10.8" node "14.17.5" yarn "1.22.5" react-scripts "5.0.1" axios "^0.27.2" Rails "6.1.6" APIモード 結論 Reactのルートディレクトリ直下に.envファイルを作成し、下記の記述をする