fix: prevent white screen on missing Firebase config, remove duplicate CSS imports, document missing TWO_FACTOR_ENCRYPTION_KEY - #1817
Merged
aryandas2911 merged 2 commits intoJul 17, 2026
Conversation
Contributor
Author
|
Hello @aryandas2911, I have fixed #1817 kindly review it . "fix: prevent white screen on missing Firebase config, remove duplicate CSS imports, document missing TWO_FACTOR_ENCRYPTION_KEY" |
aryandas2911
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Description
Fixed a white screen crash that occurred when new contributors ran the frontend without a .env file configured. Also removed duplicate CSS @import blocks that were causing PostCSS build warnings and incorrect dark mode font rendering. Additionally added the missing TWO_FACTOR_ENCRYPTION_KEY to backend/.env.example so contributors know it is required to start the backend.
🛠 Changes Made
-frontend/src/utils/firebase.js — Wrapped Firebase initializeApp() in a try/catch block so the app loads gracefully instead of showing a white screen when Firebase API keys are missing from .env
-frontend/src/index.css — Removed two duplicate copies of the entire stylesheet that were causing @import must precede all other statements PostCSS errors and dark mode font color issues
-backend/.env.example — Added missing TWO_FACTOR_ENCRYPTION_KEY entry so new contributors know this required variable exists and how to generate it
✅ Checklist
🚀 Notes for Reviewers
These fixes primarily improve the developer experience for new contributors. Before these changes, cloning the repo and running it locally without a .env file resulted in a blank white screen with no guidance. Now the app loads gracefully and logs clear error messages pointing contributors to the .env setup.