Temp un-deploy

I have deployed my website via Vercel, but wish to temporarily ‘undeploy’ it whilst I’m working on it, witha. veiw to redeploy when its finished. What’s the best way?

Hi @hello-5431, I’m guessing you wanna hide the app to prevent users from using a unfinished version.

The simplest way is to use Vercel Firewall to deny access to everyone. Apart from that you can always delete all the deployments for this project which will take users to 404 page.

1 Like

Can you guide me through how to do the firewall (I’m not on pro version).

If I delete a deployment, how do i redploy ? Will it auto-occur via github?

Hi @ramsrishalini-8161, you don’t need to be on Pro.

Go to your Vercel Dashboard > Project > Firewall > Add Rule:

And then create and save this rule:

You’ll see a notification to publish this rule, like this:

Click Review and then click Publish.

You won’t be able to open any page now.

1 Like

I think the easiest way here is to remove the Domain alias from the project. A project with no domains is inaccessible to the internet

Be aware that if you’re using a .vercel.app domain, this will free it up to be taken by someone else

2 Likes

Thanks guys,

The firewall method worked.

Re the domain method, can i redirect?

Yes. You can redirect using the vercel.json configuration if you want.

Hi @hello-5431, I wanted to check in regarding your question about redirecting. Have you found a solution or still need assistance with the vercel.json configuration? If you require further guidance, please provide specific details about your setup or any issues you are facing.