Skip to content

Commit 0996d2a

Browse files
authored
Removed a call to the Twitter API that was causing a crash on build (#212)
1 parent e177d1e commit 0996d2a

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

.frontmatter/database/mediaDb.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

lib/twitter.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

pages/blog/[slug].tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import Reactions from '@/components/Reactions';
2121
import { ShareArticle } from '@/components/ShareArticle';
2222
import { Subscribe } from '@/components/Subscribe';
2323
import { YoutubeEmbed } from '@/components/YoutubeEmbed';
24-
import { getTwitterProfilePicture } from '@/lib/twitter';
2524
import siteMetadata from '@/data/siteMetadata';
2625
import slugify from 'slugify';
2726
import { useRouter } from 'next/router';
@@ -395,8 +394,6 @@ export const getStaticProps: GetStaticProps = async ({ params: { slug } }) => {
395394
let sponsoredArticleUrl = null;
396395
let summary = null;
397396

398-
const profilePicture = await getTwitterProfilePicture();
399-
400397
const notion = new Client({
401398
auth: process.env.NOTION_SECRET
402399
});
@@ -442,7 +439,6 @@ export const getStaticProps: GetStaticProps = async ({ params: { slug } }) => {
442439
publishedDate,
443440
lastEditedAt,
444441
slug,
445-
profilePicture,
446442
coverImage,
447443
summary,
448444
moreArticles,

0 commit comments

Comments
 (0)