Hello,
I've been working on making a template repo for hosting an Express/Typescript server on Vercel. I originally started out with using the Github integration to automatically deploy my server, but after running into some issues found that I needed to switch to doing deployments via the Github action workflow recommended by Vercel in the documentation. This has worked for me, however because I previously set up the integration, I'm now in a state of having both the integration and the actions kicking off deployments, with only the action deployment working properly. I'm trying to figure out how to get out of this state and get my Vercel project and Github repo into a state as if I never added the integration and went with the CLI linking approach from the start, while keeping as much parity as possible with the integration capabilities.
On the Vercel side, what do I need to change? Do I just remove the "Connected Git Repository" repo link under "Settings > Git" or is there a reason I would want to keep that around? If keeping it around, what settings do I need to change to prevent all the deployment actions that happen from various repository interactions (change to "master", branch push, pr against "master", etc.)?
On the Github side, what do I need to change? Is there a way to view integrations for my repository and remove the Vercel one? I noticed I also have two environments configured in the repository, "Production" and "Production - (Vercel project name)". I'm guessing the second one was added by the integration, but not sure if the first was as well or if that's a Github default. Should I remove one or both? Is there anything else I might be unaware of the integration creating?
On parity with the integration, what should I cover? The documentation recommends setting up a production for pushes to "master" and a preview for pushes to every other branch, but I know the integration also creates previews for PR's against "master". I'm looking at changing the preview workflow to have optional PR only jobs that waits for the deployment, retrieves the preview URL, and comments similar to the integration, using this await action and url fetch action. Is there anything else I should cover, like somehow populating the deployments into the repositories "deployment" section? Or would that be somehow covered via the repo link on the Vercel side?
Any advice on how to effectively achieve any or all of this would be very appreciated.
Github repository: 0mn1core/express-typescript-vercel-template