Skip to content

fix(web-react): avoid @angular/common in plain Supabase client - #73

Merged
drozhzhin-n-e merged 1 commit into
mainfrom
fix/web-react-angular-common-bundle
Aug 3, 2026
Merged

fix(web-react): avoid @angular/common in plain Supabase client#73
drozhzhin-n-e merged 1 commit into
mainfrom
fix/web-react-angular-common-bundle

Conversation

@drozhzhin-n-e

Copy link
Copy Markdown
Contributor

Summary

  • SupabaseClientService used isPlatformBrowser from @angular/common, which pulls PlatformLocation into the React Vite bundle and crashes boot (JIT / no @angular/compiler).
  • Replaced with a plain platformId === 'browser' check (same as Angular's PLATFORM_ID browser value) so start:web-react mock path works again.

Test plan

  • Browser smoke: mock login → 3 orgs → switch → sign out on http://localhost:4300/
  • CI lint-and-build / e2e green
  • Angular web still builds (provideSupabaseClient unchanged)

Made with Cursor

Importing isPlatformBrowser pulled PlatformLocation into the React Vite bundle and crashed mock/supabase boot with a JIT error.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
saas-starter Ready Ready Preview Aug 3, 2026 5:29pm

@drozhzhin-n-e
drozhzhin-n-e merged commit 771dee6 into main Aug 3, 2026
5 checks passed
@drozhzhin-n-e
drozhzhin-n-e deleted the fix/web-react-angular-common-bundle branch August 3, 2026 17:42
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.

1 participant