Search code examples
htmlreactjsdeploymentvercelsurge.sh

How to deploy a React website via Vercel or Surge?


Although it seems like I was able to deploy the website successfully (which was built with React), as soon as I click on the deployed link, the browser takes me back to localhost:3000. I assume it's because I've set redirectUri as the following const redirectUri = "http://localhost:3000/callback/";, but I am not sure howelse I could set the redirectUri. Can someone help me with this issue please?

Here is the surge link : www.spotify_playlist_jammming.surge.sh


Solution

  • You need to set redirectUri to a callback route in http://www.spotify_playlist_jammming.surge.sh