Deployment
You've finally made it to the end! Now it's time to deploy your app to the world and make your first sale with your SaaS app. Here are some few things that need to be done during deployment.
Irrespective of the platform been deployed to, the following steps are required:
- Set the
NODE_ENV
environmental variable toproduction
Database
If you choose to use a mongodb database, simply create one on mongodb atlas (opens in a new tab) and set the following environmental variables:
-
DATABASE_URL
- The connection string to your mongodb database, i.e:_10DATABASE_URL="mongodb+srv://<cluster-name>:<db-password>@<db-username>.ahadic5.mongodb.net/<database>" -
NEXTAUTH_URL
- The url of your app, i.e:_10NEXTAUTH_URL="https://<your-app>.vercel.app"
Payment
Accepting real payments in your app requires that your lemonsqueezy store get activated as seen below.
To activate your store,navigate to your lemonsqueezy dashboard (opens in a new tab) and click on the Activate Store
button, follow the provided instructions to activate your store.