feat: force dynamic rendering for the home page
This commit is contained in:
parent
d1d5752094
commit
26789c579f
|
|
@ -61,6 +61,8 @@ async function getNewProducts() {
|
||||||
return rows.map(p => ({ ...p, images: p.primary_image ? [p.primary_image] : [] }));
|
return rows.map(p => ({ ...p, images: p.primary_image ? [p.primary_image] : [] }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
const categories = await getCategories();
|
const categories = await getCategories();
|
||||||
const popularProducts = await getPopularProducts();
|
const popularProducts = await getPopularProducts();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue