How to use getStaticPaths and getStaticProps with new Supabase auth helpers

Can anyone provide an example of how to use NextJS getStaticPaths and getStaticProps with the new @supabase/auth-helpers-react and @supabase/auth-helpers-nextjs packages. Every time I try and get it to work myself I end up with useContext errors as the useSupabaseClient() hook is being called outside of the main function.
Was this page helpful?