x
This commit is contained in:
1 parent
913cbef765
commit
173c583787
22 files changed
+2847
-364
No files matched your search
@@ -322,12 +322,22 @@ async function main() {
|
||||
}
|
||||
}
|
||||
});
|
||||
// Editorial banner at the bottom of Product Details
|
||||
// Native product detail hero block
|
||||
await prisma.pageSection.create({
|
||||
data: {
|
||||
pageId: productDetailPage.id,
|
||||
type: "PRODUCT_MAIN",
|
||||
order: 2,
|
||||
isActive: true,
|
||||
payload: {}
|
||||
}
|
||||
});
|
||||
// Editorial banner can now be reordered between native product blocks
|
||||
await prisma.pageSection.create({
|
||||
data: {
|
||||
pageId: productDetailPage.id,
|
||||
type: "EDITORIAL_TILE",
|
||||
order: 2,
|
||||
order: 3,
|
||||
isActive: true,
|
||||
payload: {
|
||||
title: "The [Botanical] Sourcing",
|
||||
@@ -341,6 +351,31 @@ async function main() {
|
||||
}
|
||||
}
|
||||
});
|
||||
await prisma.pageSection.createMany({
|
||||
data: [
|
||||
{
|
||||
pageId: productDetailPage.id,
|
||||
type: "PRODUCT_DETAILS",
|
||||
order: 4,
|
||||
isActive: true,
|
||||
payload: { title: "Product Details", showHeading: true },
|
||||
},
|
||||
{
|
||||
pageId: productDetailPage.id,
|
||||
type: "PRODUCT_SPECS",
|
||||
order: 5,
|
||||
isActive: true,
|
||||
payload: { title: "Specifications", showHeading: true },
|
||||
},
|
||||
{
|
||||
pageId: productDetailPage.id,
|
||||
type: "RELATED_PRODUCTS",
|
||||
order: 6,
|
||||
isActive: true,
|
||||
payload: { title: "Related Products", showHeading: true, showViewAllLink: true },
|
||||
},
|
||||
],
|
||||
});
|
||||
// 7. Create FAQ Page Layout
|
||||
const faqPage = await prisma.page.upsert({
|
||||
where: { slug: "faq-layout" },
|
||||
@@ -659,4 +694,4 @@ main()
|
||||
await prisma.$disconnect();
|
||||
await pool.end();
|
||||
});
|
||||
//# sourceMappingURL=seed-pages.js.map
|
||||
//# sourceMappingURL=seed-pages.js.map
|
||||
Reference in new issue
Block a user