Skip to content

Fix black screen: graceful degradation for missing env vars, bump to build 330#133

Merged
Bdrain87 merged 3 commits intomainfrom
claude/fix-build-330-black-screen-bBneR
Mar 8, 2026
Merged

Fix black screen: graceful degradation for missing env vars, bump to build 330#133
Bdrain87 merged 3 commits intomainfrom
claude/fix-build-330-black-screen-bBneR

Conversation

@Bdrain87
Copy link
Owner

@Bdrain87 Bdrain87 commented Mar 8, 2026

The black screen was caused by supabase.ts throwing at module evaluation
time when env vars are missing, killing the app before React could mount.

Three-layer fix:

  • supabase.ts: Replace fatal throw with console.warn + export
    isSupabaseConfigured flag so the module evaluates safely
  • App.tsx: Check isSupabaseConfigured and show a styled error screen
    instead of attempting to render with broken Supabase client
  • main.tsx: Dynamic import for App so the global error handler is
    registered before any app modules evaluate (defense-in-depth)

Also bumps iOS build number to 330.

https://claude.ai/code/session_01QF55kSiZi1wJ7HYAfqumWD


Open with Devin

claude added 2 commits March 8, 2026 14:07
…build 330

The black screen was caused by supabase.ts throwing at module evaluation
time when env vars are missing, killing the app before React could mount.

Three-layer fix:
- supabase.ts: Replace fatal throw with console.warn + export
  isSupabaseConfigured flag so the module evaluates safely
- App.tsx: Check isSupabaseConfigured and show a styled error screen
  instead of attempting to render with broken Supabase client
- main.tsx: Dynamic import for App so the global error handler is
  registered before any app modules evaluate (defense-in-depth)

Also bumps iOS build number to 330.

https://claude.ai/code/session_01QF55kSiZi1wJ7HYAfqumWD
@vercel
Copy link

vercel bot commented Mar 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vetclaimsupport Ready Ready Preview, Comment Mar 8, 2026 2:33pm

Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@Bdrain87 Bdrain87 merged commit face29c into main Mar 8, 2026
4 checks passed
@Bdrain87 Bdrain87 deleted the claude/fix-build-330-black-screen-bBneR branch March 8, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants