Hide GitHub environments generated by Next.js
Unanswered
Broad-snouted Caiman posted this in #help-forum
Broad-snouted CaimanOP
Hii everyone,
I am having an issue, I have a public repository which is deployed on Vercel ( continuous deploy ). The thing is that on each deployment it generates environments and shows all the old deployments, in the repo I tried About > Gear > Unchecked the Deployments box, but it’s still showing when I visit the repo signed out. Is there something to do with Vercel or is it something about GitHub ?
Thanks in advance
I am having an issue, I have a public repository which is deployed on Vercel ( continuous deploy ). The thing is that on each deployment it generates environments and shows all the old deployments, in the repo I tried About > Gear > Unchecked the Deployments box, but it’s still showing when I visit the repo signed out. Is there something to do with Vercel or is it something about GitHub ?
Thanks in advance
10 Replies
Do you mean something like this?: https://github.com/SonMooSans/next-docs/deployments
It is automatically created by Vercel and you can't hide this thing for now as I know.
It is automatically created by Vercel and you can't hide this thing for now as I know.
you can make a script that [deletes the deployments](https://docs.github.com/en/rest/deployments/deployments?apiVersion=2022-11-28#delete-a-deployment "docs on how to delete a deployment with the api") using the Github API
@fuma Do you mean something like this?: https://github.com/SonMooSans/next-docs/deployments
It is automatically created by Vercel and you can't hide this thing for now as I know.
Broad-snouted CaimanOP
Exactly !
But how Leerob did manage to hide it from his github repo ? https://github.com/leerob/leerob.io
It doesn’t show on the right side but we can still access it with direct URL
But how Leerob did manage to hide it from his github repo ? https://github.com/leerob/leerob.io
It doesn’t show on the right side but we can still access it with direct URL
Broad-snouted CaimanOP
This is the problem, I literally unchecked, but still showing even if it’s not supposed to, I doubt that it’s github issue but I’ll still believe it 😔
try checking and unchecking it
and try in private/incognito mode to be signed out with no cache
@Broad-snouted Caiman This is the problem, I literally unchecked, but still showing even if it’s not supposed to, I doubt that it’s github issue but I’ll still believe it 😔
ahh sorry, i didn't read you message to see that you said that...
@riský in the edit menu of about, you can just disable deployments to show in home page...
yeah so when i did unchecked mine, it instantly didn't show anymore for me...
something must be wrong with yours ðŸ˜