export const getServerSideProps = withPageAuth({
redirectTo: '/',
async getServerSideProps(ctx, supabase) {
//const { user } = await getUser(ctx);
// Find out how many words user is currently studying at novice level - maximum allowed is 200
const { data } = await supabase
.from('users_vocabulary')
.select('*', { count: 'exact' })
//.eq('B', user.id);
return { props: { data } };
}
});
export const getServerSideProps = withPageAuth({
redirectTo: '/',
async getServerSideProps(ctx, supabase) {
//const { user } = await getUser(ctx);
// Find out how many words user is currently studying at novice level - maximum allowed is 200
const { data } = await supabase
.from('users_vocabulary')
.select('*', { count: 'exact' })
//.eq('B', user.id);
return { props: { data } };
}
});