Anyone else noticing that nextjs + supabase + supa...
# off-topic
n
Anyone else noticing that nextjs + supabase + supabase auth helpers + vercel is sometimes taking over a second to load the user in SSR? It pretty much makes SSR kinda useless. I saw a comment here also saying that: https://github.com/supabase-community/auth-helpers/issues/55#issuecomment-1088203230, not sure if there is anything I can do about it
Initially my regions were incorrect (vercel was us-east and supabase was us-west) but I'm still seeing 3 second response times if I dont visit my page for 10 minutes
Either vercel is sleeping or supabase is sleeping
The only SSR code I have is
Copy code
export async function getServerSideProps(context: GetServerSidePropsContext) {
  const { user } = await getUser(context);

  return { props: { initialUser: user } };
}
Weird, locally the
getUser
await takes 2ms
Maybe this is a vercel issue
Alternate theory, its a next 12.2 issue
going back to 12.1.6 made everything fast again