x
This commit is contained in:
1 parent
913cbef765
commit
173c583787
22 files changed
+2847
-364
No files matched your search
@@ -363,9 +363,20 @@ async function main() {
|
||||
await prisma.pageSection.create({
|
||||
data: {
|
||||
pageId: productDetailPage.id,
|
||||
type: "EDITORIAL_TILE",
|
||||
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: 3,
|
||||
isActive: true,
|
||||
payload: {
|
||||
title: "The [Botanical] Sourcing",
|
||||
description: "All our raw materials are sustainably harvested at peak potency from verified organic micro-farms worldwide.",
|
||||
@@ -379,6 +390,32 @@ 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" },
|
||||
|
||||
Reference in new issue
Block a user