Demo Deployment (using Vercels Cloud and Github)
Introduction
A friend told me about v0 ai tool provided by Vercel. (%TODO: provide link to AI Tool blog post). They offer to directly host the project on their cloud solution and via that promotion I got to know their hosting service. This page will be hosted on rented hardware, with Docker and some more tools. But I use Vercel to quickly deploy preview builds, using the automation that builds from the private GitHub Repository.
Be ware, that they offer a paid pro service, that I am currently not using.
The preview Image is a great way to provide a preview for social media.
Quick Guide
After creating an account, verifiyng it and such. Head to the main page (click the Vercel Icon) and add a new project. Select From Github and allow access to the specific repository(s) you want to host (or all).
Import the poject you want to Vercel. It will automatically pull the data and run a build on it. The latest version will be hosted on <project-name>.vercel.app.
But be aware: for each build there will be a specific subdomain that you SHOULD NOT share.
- It’s not public (either the user has to verify with Vercel or can’t reach the page)
- It’s not production, so it might not be reachable at all times
- It’s not production, it will be frozen in time
- It will contain outdated data that will still be available
- It’s not secure, the URL might contain information about
- your username on Vercel
- your Mail Address
- details about the Git Repository/Branch/Commit
Rollbacks
By default if a build fails, the last build that passed will still be hosted as production. So you don’t have to worry about that, but you want to check after each git push.
If you want to rollback, click the project on the main page. You can simply switch to the Deplyoments Tab at Vercel, scroll down to the version you want, click on the three dots at the right and click Redeploy.