© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
매튜

Next.js getServerSideProps broken after supabase.js 2.0 and auth helpers update

export const getServerSideProps = withPageAuth({
  redirectTo: '/',
  async getServerSideProps(ctx, supabaseServerClient) {
    const { data } = await supabaseServerClient(ctx)
      .from('users_vocabulary')
      .select('*', { count: 'exact' });
    return { props: { data } };
  }
});
export const getServerSideProps = withPageAuth({
  redirectTo: '/',
  async getServerSideProps(ctx, supabaseServerClient) {
    const { data } = await supabaseServerClient(ctx)
      .from('users_vocabulary')
      .select('*', { count: 'exact' });
    return { props: { data } };
  }
});


Followed the updated guide on https://github.com/supabase/auth-helpers/blob/main/packages/nextjs/README.md, supabase logs shows 200 query but then nothing shows up in chrome network monitor. Any ideas?
unknown.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase auth next.js
SupabaseSSupabase / help-and-questions
4y ago
JS Auth helpers and Next.js integration production-ready?
SupabaseSSupabase / help-and-questions
4y ago
Supabase Auth with Next.js
SupabaseSSupabase / help-and-questions
4y ago
Confusion when combining createServerSupabaseClient and clientside auth helpers (Next.js).
SupabaseSSupabase / help-and-questions
4y ago