score:-1

new answer: there is no need to run the serve command on the server. just put the build folder on the server. inside the .conf apache file make the documentroot path point to the build folder.

old answer: changing these lines:

proxypass / http://localhost:5001/
proxypassreverse / http://localhost:5001/

to:

proxypass / http://my-server-ip:5001/
proxypassreverse / http://my-server-ip:5001/

solved the problem

score:2

run serve -s from inside of the /build folder. exemple

c:\users\zafriha\desktop\myproject>build>cd..

c:\users\zafriha\desktop\myproject>npm install -g serve

c:\users\zafriha\desktop\myproject>serve -s build


Related Query

More Query from same tag