Limited Offer: Only 1 spots left at $149 for the next 20 customers! Secure yours now before the price goes up!
In this section, we’ll guide you through deploying your new SaaS application using Vercel.
Begin by adding a new project to your Vercel dashboard.
Open the Environment Variables section in your Vercel project settings.
Next, go to your .env.local
file and copy its contents into this section. Your .env.local
file should look like this (don’t forget to include your database URL):
Verify that you have all the necessary data by checking the .env.example file.
After copying and pasting the content from your .env.local file, ensure all the variables are filled out in Vercel’s dashboard.
Now, click on the Deploy button and wait for Vercel to build and deploy your website!
Once the deployment is complete, you should see a success message indicating that your site is live.
And that’s it! You’re now ready to showcase your SaaS project to the world!
You now have live access to your new SaaS application! However, please note that Clerk and Stripe are still in development mode. In the next steps, we will configure them for production.
Go to your Clerk dashboard and select your application.
Click on Instances in the left sidebar.
Create or select the Production instance.
In the Production instance, make sure you:
Update your Vercel environment variables:
CLERK_PUBLISHABLE_KEY
CLERK_SECRET_KEY
In the Production instance, go to the Webhooks section.
Create a new webhook with the following settings:
user.created
- user.createdAtEdge
- user.deleted
STRIPE_SECRET_KEY
STRIPE_WEBHOOK_SECRET
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
STRIPE_PRICE_ID
(make sure it’s a live product price ID)Your application is now fully live and ready for real users and payments. 🚀