I was using serve to serve a React static page without any backend services, when I run serve -s build in my computer and visited the site by localhost:3000, it worked well. However, when I used scp to copy the 'build' folder to the remote machine and run serve -s build here, I couldn't visit it from ip:port, and it gave the error You need to enable JavaScript to run this app .
I was using
serveto serve a React static page without any backend services, when I runserve -s buildin my computer and visited the site by localhost:3000, it worked well. However, when I used scp to copy the 'build' folder to the remote machine and runserve -s buildhere, I couldn't visit it fromip:port, and it gave the errorYou need to enable JavaScript to run this app.