I have an reactjs application that I have deploy on my web server.
I build my app (So it's create a build
folder) and when I want to start it with ~/.npm-packages/bin/serve -s ./build -l tcp://0.0.0.0:8100
it work (with work dir set to react/
, build is here react/build
but we can see all source code on my page, that theory not possible in production mode.
If I set the work dir to react/build
it return a 404 error.
Inside build
folder
It doesn't return any other error unfortunately.
Update: I only stock build
folder and it work, but we can always see source code even its in production mode.
If I change to react/build
, react/build/static
or other, it display 404.