Vercel Deployment
Step 1: Sign In to Vercel
Go to Vercel’s website.
Sign up or log in using your GitHub account for seamless integration.
Step 2: Import Your GitHub Project
Click on the "New Project" button.
Select GitHub as the platform.
Browse your GitHub repositories and select the one you want to deploy.
Step 3: Configure the Deployment Settings
Environment Variables: Add all the required environment variables under the "Environment Variables" section.
Filling in Environment Variables
App Section:
Authentication Setup:
Google (Allow users to sign up with Google accounts):
GitHub (Allow users to sign up with GitHub accounts):
Follow this guide to retrieve these variables: OAuth with Google and GitHub
(Note: Replace http://localhost:3000
with your website URL, e.g., https://directoryeasy.com
.)
Stripe Setup (For Payments):
Follow this guide to set up these variables: Stripe Configuration
Email Setup (For Email Marketing System):
You can use any SMTP server you like, but Zoho is recommended as it is free and easy to set up. Zoho also offers free professional emails.
Follow this guide to get a professional email with your domain name using Zoho:
How to Get a Professional Email with Zoho (YouTube)
Database Setup:
Follow this guide: Database Configuration (Note: Follow only the first half of the guide to get your Database URL.)
Cloudinary Setup (For Image Upload):
Follow this guide: Cloudinary Configuration
Upstash Redis Setup (Track Today's Visitors):
Follow this guide: Upstash Redis Configuration
Google Analytics Setup (Track Recent Visitors):
Follow this guide: Google Analytics API Configuration
Final Steps:
Add All Variables: After assigning values to each variable, copy everything (select all) and paste them into the environment variables field in Vercel. Don’t paste them one by one; simply paste them in the first field, and it will automatically propagate to all others.
Build and Output Settings:
Expand the Build and Output Settings section.
Turn on the toggle button for the Build command.
Paste the following command:
Deploy:
Click Deploy and wait for a few minutes.
Congratulations! Your web app is live! 🎉
Troubleshooting: If you encounter any errors during the build process, copy the entire error message and share it with me for assistance.
Last updated