Unhandled server error: ERROR: relation \"users\" does not exist

In my Next.js app, after signing in, the middleware should, of course, run. The problem is that I am calling supabase.auth.getUser() there, but the auth server responds with the error: "Unhandled server error: ERROR: relation "users" does not exist," even though the signup is successful, everything is set up correctly, and the cookies are present. What can I do to resolve this?
Screenshot_2025-01-14_at_15.51.29.png
Screenshot_2025-01-14_at_15.51.47.png
Screenshot_2025-01-14_at_15.52.06.png
Was this page helpful?