You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi All,
I am new to server side rendering concept.
After the npm run start the dist folder is created and the localhost:4000 is running but after coping the code from dist folder and keeping in the apache web server and after running the server I am getting the page but the source code is saying 404 error which is weird. should I install node.js in my prod server and run my code there as well, if so what changes to the server.ts file should i make. i thought its pre compiled code and only a static web server to run the dist folder files should be fine. Please help me on this.
The text was updated successfully, but these errors were encountered:
you surely need node on your server and you can also use pm2 for the same as your server should not go down.
Also you need to redirect your traffic with forward and reverse proxy according to your server (apache or nginx) and then your server will start delivering the pages to port 80.
Hi All,
I am new to server side rendering concept.
After the npm run start the dist folder is created and the localhost:4000 is running but after coping the code from dist folder and keeping in the apache web server and after running the server I am getting the page but the source code is saying 404 error which is weird. should I install node.js in my prod server and run my code there as well, if so what changes to the server.ts file should i make. i thought its pre compiled code and only a static web server to run the dist folder files should be fine. Please help me on this.
The text was updated successfully, but these errors were encountered: