Deploying Your SaaSavant Boilerplate SaaS Project to Vercel
In this guide, you'll learn how to deploy the SaaSavant project to Vercel, ensuring all necessary configuration for smooth deployment.
Prerequisites
Before proceeding with deployment, make sure you have the following:
- A Vercel account (You can sign up at Vercel (opens in a new tab)).
- The SaaSavant project is up and running locally.
- All necessary environment variables set up.
Step 1: Push the Code to a Git Repository
Vercel automatically deploys from Git repositories (GitHub, GitLab, or Bitbucket). Ensure your project code is pushed to a repository.
-
Initialize a git repository (if not done yet):
git init
-
Add your project code to the repository:
git add .
-
Commit your changes:
git commit -m "Initial commit"
-
Push your changes to the remote repository:
Replace your-username
and repo-name
with your GitHub username and repository name.
git remote add origin https://github.com/your-username/repo-name.git
git push -u origin main
Step 2: Connect to Vercel
- Go to Vercel's dashboard (opens in a new tab) and log in.
- Click
Add New Project
. - Choose the Git repository where SaaSavant is located.
- Click Import next to your repository.
- Enter environment variables.
- Click
Deploy
.
- Enable Speed Insights and Analytics in the Vercel dashboard.
The code has been configured for collecting analytics and speed insights, but in order for it to work you must enable these features in the Vercel dashboard.