• Documentation
  • /
  • Next.js Firebase
  • /
  • Production Checklist

Production Checklist

Before going to production, it's essential to follow certain precautions to avoid failures.

1) Environment Variables

First, we must safely inject the correct environment variables into their relative environment. MakerKit has predefined templates that allow you to understand where each variable should be added.

Before publishing your SaaS, or if you are making a production release after a change and this included an environment variable; ensure your Vercel Console is up to date with the correct variable in the right environments.

2) Firebase Security Rules (Firestore and Storage)

Whenever your Security rules need updating, you have to make sure to propagate these changes and publish them from your Firebase Console.

3) Firestore Indexes

As you may know, the Firestore emulator does not fail when a new index is needed, like its production version. This can be dangerous!

If you are setting up Makerkit for the first time, remember to set up the an index for querying an invitation without knowing its organization.

You can do so using the following link (replace "[[YOUR_PROJECT_ID]]" with your real project ID):

https://console.firebase.google.com/u/0/project/[[YOUR_PROJECT_ID]]/firestore/indexes/single-field?create_exemption=ClBwcm9qZWN0cy9zdG9yeWpveS00NmVlMy9kYXRhYmFzZXMvKGRlZ mF1bHQpL2NvbGxlY3Rpb25Hcm91cHMvaW52aXRlcy9maWVsZHMvY29kZRACGggKBGNvZGUQAQ

If you have added other complex queries that need a Firestore index exemption, ensure you are testing thoroughly with an actual Firestore database to avoid similar issues.

4) Enable Authentication providers

If you have added authentication providers other than Google, make sure you have enabled them from the Console and added the needed configuration so that they work correctly.

For many of them, you will have to provide an app ID or a key, so configure and test them in a production environment.

5) Enable your Stripe account Billing Status

Remember to complete your Stripe account's information and enable billing (of course, also replacing the correct environment variables) and not to forget it in Testing Mode.

6) Enable Google Analytics (Optional)

Understand how visitors find your website early on.

7) Enable Sentry (Optional)

With 4000 events for free per month, we recommend that you use Sentry.io for ensuring you can catch, analyze and fix any runtime errors in your application that your users will encounter.

Stay informed with our latest resources for building a SaaS

Subscribe to our newsletter to receive updatesor