Connect domain to deployment without connecting Git repo

Ended up using the alias command in Github actions according to here. Helpful docs for alias. I also had to specify the team scope because it said I did not have access to the domain. source

      - name: Deploy Project Artifacts to Vercel
        run: |
          url="$(vercel deploy --scope [team-slug] --prebuilt --token=${{ secrets.VERCEL_TOKEN }})"
          vercel --scope [team-slug] alias --token=${{ secrets.VERCEL_TOKEN }} set "$url" preview.example.com
1 Like