Skip to content

Commit

Permalink
fixed vercel deployment on merge #13
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanAuyeung committed Oct 13, 2023
1 parent eedae37 commit 82ba7fc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app/storefront/helperFunction.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import dotenv from 'dotenv';

import { createClient } from '@supabase/supabase-js';

dotenv.config();
if (
!process.env.NEXT_PUBLIC_SUPABASE_URL ||
Expand All @@ -15,18 +17,17 @@ const supabase = createClient(
);

export async function getProduct() {
let { data, error } = await supabase.from('product').select('*');
console.log(data);
const { data } = await supabase.from('product').select('*');
// console.log(data);
return data;
}

export async function filterProduct(productType) {
const { data, error } = await supabase
const { data } = await supabase
.from('product')
.select('*')
.eq('category', productType);

console.log(data);
// console.log(data);

return data;
}

0 comments on commit 82ba7fc

Please sign in to comment.