React with router getting 404
I know it's a common knowledge where SPAs are getting 404 if used in combination with routing solution, however it seems that some people were able to fix it, but not my case unfortunately.
I followed steps advised in this thread - https://discord.com/channels/713503345364697088/1019596063079944273 but now I am just getting Server Error from Railway when trying to access the webapp and there are no logs in the Deployment logs at all.
My Dockerfile
And
.nginx/nginx.conf
file
I am not even sure how to troubleshoot this as it seems like i am not hitting the webapp at all as there are no logs? Any help would be appreciated7 Replies
Project ID:
bef41c2c-b1a9-42ef-adb9-e3afa84fbbea
bef41c2c-b1a9-42ef-adb9-e3afa84fbbea
set listen to 8080, and then set a service variable PORT = 8080
do you mean in vite config set server to listen on 8080 as opposed to 3000?
you are using nginx
is this a csr app?
wow yes, this exactly did the trick! listening to 8080 and setting ports in env variable!
thank you!
no problem!