Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 870 Bytes

File metadata and controls

13 lines (10 loc) · 870 Bytes

Testing Phase Fixes

1. Turbopack Prisma Symlink Error

Error: FATAL: An unexpected Turbopack error occurred - Windows couldn't create symlink to @prisma/client
Fix: Changed Prisma client output from node_modules/@prisma/client to src/generated/prisma-client to avoid symlink creation

2. React Hydration Error

Error: Server-rendered HTML didn't match client properties - Radix UI components generated different random IDs
Fix: Added client-side mounting check - Radix UI components (ThemeToggler, UserMenu, MobileNav) now only render after client hydration

3. User Authentication Error

Error: Users created in Supabase Auth were not automatically added to Prisma user_roles table
Fix: Added automatic user creation in auth callback route and improved init-user API route to sync users immediately after authentication