NEXTJS SSR ISSUE with PRISMA
Unanswered
beecode posted this in #help-forum
beecodeOP
Need SERIOUS HELP WITH NEXTJS:
Here is my component:
where BillboardClient is just the table...
I have deployed my project on vercel... And I do have also Button within BillboardClient which add the billboard data to db(supabase being used...
But my deployed version (vercel site) is not updating the data to load the table... despite when I run the code locally and also on db new added billboard data is already uploaded
For reference:
here is the deployed site: https://bhojpur-travels-prod.vercel.app/admin/billboard
Here is my component:
const BillboardRoute = async () => {
const billboards = await prismadb.billboards.findMany({
orderBy: {
createdAt: "desc",
},
});
const formattedBillboards = billboards?.map(billboard => ({
id: billboard.id,
label: billboard.label,
isFeatured: billboard.isFeatured,
createdAt: format(billboard.createdAt, "yyyy-MM-dd"),
}));
return <BillboardClient data={formattedBillboards} />;
};
export default BillboardRoute;where BillboardClient is just the table...
I have deployed my project on vercel... And I do have also Button within BillboardClient which add the billboard data to db(supabase being used...
But my deployed version (vercel site) is not updating the data to load the table... despite when I run the code locally and also on db new added billboard data is already uploaded
For reference:
here is the deployed site: https://bhojpur-travels-prod.vercel.app/admin/billboard