[OTHER] GitPod checking links results in error
What would you like to share?
I was trying to check my PR worked in GitPod.
While my profile did load, all of the links were throwing errors as they were trying to connect to http://localhost:3000/api/users/grahamthedevrel/links/
So I could not check that I had done everything correctly there.
Additional information
No response
To reduce notifications, issues are locked until they are https://github.com/EddieHubCommunity/LinkFree/labels/%F0%9F%8F%81%20status%3A%20ready%20for%20dev and to be assigned. You can learn more in our contributing guide https://github.com/EddieHubCommunity/LinkFree/blob/main/CONTRIBUTING.md
I believe this issue is not fixable due to the hackery GitPod performs to handle localhost port mapping. I was able to get the links to the correct server, but GitPod prevented the links from hitting the API route, instead sending them to the 404 page.
Thanks for raising the issue Graham 👍 and thanks Dan for testing and feedback 💪
We should probably add this message to the docs so people are aware.
+1 to what Dan mentioned, you will see this when working on a few types of issues via Gitpod (such as authenticated pages). I do not know that there is a solution but perhaps @Cahllagerfeld would be able to confirm
If I'm not mistaken you can use the local companion they provide [1] or open the workspace in your local vscode. Then there should be a portforwarding to your actual local host
Thanks Dan @dan-mba for mentioning this I faced this issue while contributing today only. I agree with @Cahllagerfeld , we can connect our local Vscode but we need to update our docs to provide information to new or beginner contributor as they use Gitpod for contributing and they won't be able to see and debug their changes. In fact, I used Gitpod for my own first contribution as a beginner.
Hello Guys,
Am i getting this correctly ?
The links getting redirected to 404 page, is it for the "View Profile" button and other links profile.
I changed the NEXT_PUBLIC_BASE_URL to the http://linkfree.io URL and then clicking on "View Profile" worked fine.
I changed the NEXT_PUBLIC_BASE_URL to the http://linkfree.io URL and then clicking on "View Profile" worked fine.
This does not fix the issue, because the link will redirect to production instead of the local dev environment. This link should be updated to the temporary Gitpod environment I think - but I am not sure if there are further challenges
@bikrantjajware please note we use inclusive language in EddieHub,guys is not inclusive, try folks or friends 😉
Yup, it does work with the temporary gitpod url as well.
Thanks @eddiejaoude , i'll keep that in mind 😊
I think this issue could be to update the Gitpod docs with screenshots on how to chang the .env with their Gitpod dev url?
right, i guess we need to update docs. If it's ok i would like to contribute to update docs
Sure @bikrantjajware I have assigned it to you
Thank you for assigning @eddiejaoude,
Here are my proposed changes:
Also adding a note for when gitpod URL updates
Please suggest.
Looks good 👍