The alias trick did it for me. I was looking for something that would allow me to have preview on the main branch, and only production when on tag, but because of Vercel linking of main with production was making it impossible to distinguish the two. Thanks for sharing!
how do you distinguish between multiple preview deployments? Since we're using Github Actions, then I assume you might have setup disabled git deployment in vercel.json to avoid duplicate deploy trigger. Deploying with Github Actions will not specify which branch got deploy in Vercel -> Deployments Tab.
The alias trick is quite nice but I've been struggling with multi environment in Vercel. Imagine that you have a dev, sandbox, staging, prod setup. How would you tackle that? ---vercel requires a branch for domain creation which means that you will have to create a branch and do all the mgmt of the branch which is quite unconvinient and removes flexibility
Been searching for this tutorial for ages. You rock dude!
Glad I could help! Thank you for the great feedback!
The alias trick did it for me. I was looking for something that would allow me to have preview on the main branch, and only production when on tag, but because of Vercel linking of main with production was making it impossible to distinguish the two. Thanks for sharing!
Glad it helped Tomas! Thank you for the great feedback, this is what gives me the motivation to create these videos
how do you distinguish between multiple preview deployments? Since we're using Github Actions, then I assume you might have setup disabled git deployment in vercel.json to avoid duplicate deploy trigger. Deploying with Github Actions will not specify which branch got deploy in Vercel -> Deployments Tab.
The alias trick is quite nice but I've been struggling with multi environment in Vercel. Imagine that you have a dev, sandbox, staging, prod setup. How would you tackle that? ---vercel requires a branch for domain creation which means that you will have to create a branch and do all the mgmt of the branch which is quite unconvinient and removes flexibility
Nice video! Thanks.
I have a question. you explains 2 case(production, preview) How to deploy to development mode?
I don't use development environment, I only use prod and preview, here are the official docs vercel.com/docs/deployments/preview-deployments
Keep up with the 🔥
thank you!
Can we do this for organization repos?
yes, we use it on EddieHub's BioDrop repo, which is part of the Organisation
very helpful! thanks
Glad it was helpful! Thank you for your great feedback
Boss
lol haha thanks web dev Ninja