Skip to content

Commit 0d7ae4c

Browse files
committed
Update property name
1 parent 4ad3c03 commit 0d7ae4c

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/content/changelog/r2/2025-02-14-r2-super-slurper-faster-migrations.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Super Slurper now transfers data from cloud object storage provider
44
products:
55
- r2
66
date: 2025-02-14T19:00:00Z
7-
cover: ~/assets/images/r2/slurper-objects-over-time-border.png
87
---
98

109
[Super Slurper](/r2/data-migration/super-slurper/) now transfers data from cloud object storage providers like AWS S3 and Google Cloud Storage to [Cloudflare R2](/r2/) up to 5x faster than it did before.

src/schemas/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const spotlightAuthorDetails = z
1515

1616
export const baseSchema = ({ image }: SchemaContext) =>
1717
z.object({
18-
cover: image().optional(),
18+
preview_image: image().optional(),
1919
pcx_content_type: z
2020
.union([
2121
z.literal("overview"),

src/schemas/changelog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export const changelogSchema = ({ image }: SchemaContext) =>
1212
.describe(
1313
"An array of products to associate this changelog entry with. You may omit the product named after the folder this entry is in.",
1414
),
15-
cover: image().optional(),
15+
preview_image: image().optional(),
1616
});

src/util/og.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ const PRODUCT_AREA_OG_IMAGES: Record<string, string> = {
1515
};
1616

1717
export async function getOgImage(entry: CollectionEntry<"docs" | "changelog">) {
18-
if (entry.data.cover) {
19-
if (!entry.data.cover.src) {
18+
if (entry.data.preview_image) {
19+
if (!entry.data.preview_image.src) {
2020
throw new Error(
21-
`${entry.id} has a cover property in frontmatter that is not a valid image path`,
21+
`${entry.id} has a preview_image property in frontmatter that is not a valid image path`,
2222
);
2323
}
2424

2525
const image = await getImage({
26-
src: entry.data.cover,
26+
src: entry.data.preview_image,
2727
format: "png",
2828
});
2929

0 commit comments

Comments
 (0)