I have an app running on node.js. It works locally on my pc but when i upload to my server with do i keep getting this annoying error message: “Cannot GET //v1/foodtruck”
Can someone please assist me to resolve this issue.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
The problem will be with your nginx config, although the syntax will pass and the base route will work, for any other route within this, you have to set up your nginx as /v1/, you have to include the extra / after for example,
how do you run your NodeJS Express APP? Do you use pm2 ?