export async function getServerSideProps() {
const { data: bills } = await supabase
.from('bills')
.select(`name, amount`)
.eq('paid', false)
return {
props: {
bills,
},
};
}
export async function getServerSideProps() {
const { data: bills } = await supabase
.from('bills')
.select(`name, amount`)
.eq('paid', false)
return {
props: {
bills,
},
};
}