fix(email): wrap root blocks in valid MJML layouts
This commit is contained in:
1 parent
7afd60e812
commit
2a93e141aa
4 files changed
+37
-3
No files matched your search
@@ -139,6 +139,7 @@ export async function renderEmail(
|
||||
direction: options.direction ?? "ltr",
|
||||
countdownImageUrl: options.countdownImageUrl,
|
||||
brandLinkColor: String(source.root.props.linkColor ?? "#2563eb"),
|
||||
rootBlockIds: Object.values(source.root.slots).flat().map(node => node.id),
|
||||
};
|
||||
const [htmlResult, textResult, mjmlResult] = await Promise.all([
|
||||
renderTree(source, emailKind, registry, { ...base, target: "emailHtml", data: options.variables }),
|
||||
|
||||
Reference in new issue
Block a user