fix(signin): prevent white flash before dark background loads#1344
Conversation
|
@mallya-m is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
@Priyanshu-byte-coder could you please add |
cf12eb7
into
Priyanshu-byte-coder:main
|
🎉 Merged! Thanks for contributing to DevTrack. If the project has been useful to you, a ⭐ star on the repo is the easiest way to support it — it helps DevTrack get discovered by more developers. Keep an eye on open issues for your next contribution! |
What does this PR do?
Fixes the white flash visible on the sign-in page before React hydrates. Before this fix, the browser briefly renders a white background before the dark #080808 background kicks in.
Related issue
Closes #1040
Changes made
src/app/auth/layout.tsxscoped to the /auth routesrc/app/api/public/privacy/route.tswhich was causing build failures across all PRsHow to test
Screenshots
N/A — visual timing fix