尽管我似乎能够成功部署网站(使用 React 构建),但只要我单击部署的链接,浏览器就会将我带回 localhost:3000。我认为这是因为我已将 redirectUri 设置为以下内容const redirectUri = "http://localhost:3000/callback/";
,但我不确定是否可以设置 redirectUri。有人可以帮我解决这个问题吗?
问问题
183 次
2 回答
1
您需要在中设置redirectUri
回调路由http://www.spotify_playlist_jammming.surge.sh
于 2020-07-11T12:05:00.527 回答
1
看看“VERCEL_URL”作为环境变量:https ://vercel.com/docs/v2/build-step#system-environment-variables
然后你可以使用类似的东西REACT_APP_URL=$VERCEL_URL
于 2020-07-19T18:58:58.363 回答