You can import an existing Git repository to Vercel by following these steps:
On the Vercel New Project page, under the "Import Git Repository" section, select your preferred Git provider (GitHub, GitLab, or BitBucket) 1. You'll need to sign in to your chosen Git provider account when prompted.
After connecting to your Git provider, you'll see a list of your repositories. Find the one you want to import and click the "Import" button next to it 1. If you don't see your repository, you may need to configure GitHub App permissions 2.
Vercel will automatically detect your framework and necessary build settings, but you can customize these if needed:
vercel.json file to your project 1Click the "Deploy" button to create the project and deploy it based on your chosen configurations 1. Vercel will build and deploy your project automatically.
Once deployment is complete, you can view your project by selecting it in the dashboard and clicking on the domain. Your site is now accessible to anyone with the URL 1.
If you prefer using the CLI instead, you can deploy your existing project with this command:
vercel --cwd [path-to-project]Let me know if you need help with any specific part of the import process!
When importing a GitHub repository to Vercel, you might encounter visibility issues where some repositories don't appear in the list. Here's how to fix these problems:
Vercel uses a GitHub App to access your repositories. If you can't see certain repositories during import, it's typically because:
Under "Repository access", you have two options:
If you've selected "Only select repositories", make sure your desired repository is in the list. If not, add it.
If the repository belongs to an organization:
After updating permissions:
If you still can't see your repository:
If all else fails:
After making these changes, return to the "Import Git Repository" page on Vercel. Your previously hidden repositories should now be visible and available for import.