- Remix Firebase
- Production Checklist
Before going to production, it's essential to follow certain precautions to avoid failures.
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 CI provider is up to date with the correct variable in the right environments.
.env file will not be committed to your repository, you will
need to add the environment variables beforehand.
Whenever your Security rules need updating, you have to make sure to propagate these changes and publish them from your Firebase Console.
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):
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.
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.
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
Understand how visitors find your website early on.
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.