Deploy to vercel
As a temporary measure, we are deploying this site to vercel.
- First as integrated with vercel's built-in CI/CD
- This provides automatic build and deploy of our project (this site)
- Automatic production and preview deploys
- Perhaps later using deploy-to-vercel-action (opens in a new tab) to have better control and visibility within GitHub
The objective of this is two-fold:
- Demonstrate some features of vercel, such as preview deployments
- Providing capabilities we have not yet achieved with GCP/Cloudbuild
Setup
This was done using vercels built-in CI/CD, which is configured in the vercel dashboard.
The only configuration was to indicate that this site's root was in the packages/site directory, and it detected that we are using pnpm and nrwl/nx.
The app was then deployed to phac-garden.vercel.app (opens in a new tab)
The second step was to deploy to my custom domain phac-garden.v.imetrical.com/ (opens in a new tab)
My original intent to use phac-garden.v.dl.phac.alpha.canada.ca was thwarted by the following error:
Another Vercel account is using this domain. Please set the following TXT record on _vercel.canada.ca to use phac-garden.dl.phac.alpha.canada.ca in this project.