Skip to content

Commit b5caa11

Browse files
fix(utils/open-graph): replace screenshot method
1 parent 73f7c54 commit b5caa11

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

public/sitemap.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
<url><loc>https://www.albuquerque.dev/talks</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
99
<url><loc>https://www.albuquerque.dev/talks/radar</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
1010
<url><loc>https://www.albuquerque.dev/talks/rider</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
11-
<url><loc>https://www.albuquerque.dev/about/clients</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
12-
<url><loc>https://www.albuquerque.dev/about/life</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
13-
<url><loc>https://www.albuquerque.dev/about/speaker-rider</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
14-
<url><loc>https://www.albuquerque.dev/about/uses</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
1511
<url><loc>https://www.albuquerque.dev/posts/how-expensive-is-prague</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
1612
<url><loc>https://www.albuquerque.dev/posts/2022-wrapped</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
1713
<url><loc>https://www.albuquerque.dev/posts/jheniffer-was-always-my-favorite-color</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
@@ -20,6 +16,10 @@
2016
<url><loc>https://www.albuquerque.dev/posts/a-whole-day-playing-with-ipfs</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
2117
<url><loc>https://www.albuquerque.dev/posts/swift-in-the-sky-with-types</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
2218
<url><loc>https://www.albuquerque.dev/posts/o-que-ha-de-novo-com-o-angularjs</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
19+
<url><loc>https://www.albuquerque.dev/about/clients</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
20+
<url><loc>https://www.albuquerque.dev/about/life</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
21+
<url><loc>https://www.albuquerque.dev/about/speaker-rider</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
22+
<url><loc>https://www.albuquerque.dev/about/uses</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
2323
<url><loc>https://www.albuquerque.dev/talks/a-decade-reacts-rhapsody-of-life</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
2424
<url><loc>https://www.albuquerque.dev/talks/speed-at-scale-optimizing-the-largest-cx-platform-out-there</loc><changefreq>daily</changefreq><priority>0.7</priority></url>
2525
<url><loc>https://www.albuquerque.dev/talks/hydration-islands-streaming-resumability-oh-my</loc><changefreq>daily</changefreq><priority>0.7</priority></url>

src/utils/open-graph/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ async function generateImage({ width, height, content }: Required<ImageProps>) {
8484
visible: true,
8585
});
8686

87-
const element = await page.$('#body');
88-
const image = await element!.screenshot();
87+
const image = await page.screenshot();
8988
await browser.close();
9089

9190
return image;

0 commit comments

Comments
 (0)