Open hursuhyun opened 2 years ago
How about trying this method?
This occurs because you must be using proxy
in react project.
So, please try to make .env.development
on your frontend root folder, the same location of package.json
.
And add HOST=ec2-3-37-65...amawonaws.com
to .env.development
.
If this doesn't work, your way to solve the error may be enough for the testing session as well.
Hello, I have question while deploying.
It works well in backend and have seemed to connect well, but there is an issue on frontend. The page only shows 'Invalid host error' when I do yarn start.
According to two links 1, 2, I have changed
node_modules/react-scripts/config/webpackDevServer.config.js
to true, but it does solve 'Invalid host error'.Would there be any way I can solve the problem?
Thank you.