Skip to content

Commit

Permalink
Full URL for OG images + better sizing (#390)
Browse files Browse the repository at this point in the history
Followup to #389 

## What changed? Why?
Make sure we use full URL for the OG images with good sizes for Twitter
too
  • Loading branch information
dgattey committed Dec 29, 2022
2 parents 297f7db + 9ce33cd commit 8bf0b67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Graph = Record<string, string | undefined>;
const MAX_DESC_LENGTH = 300;
const SITE_NAME = 'Dylan Gattey';
export const HOMEPAGE_TITLE = 'Engineer. Problem Solver.';
const OG_IMAGE_URL = '/api/og';
const OG_IMAGE_URL = 'https://dylangattey.com/api/og';
const GRAPH_PREFIXES = ['og', 'twitter'] as const;

/**
Expand Down
1 change: 1 addition & 0 deletions src/og/OpenGraphImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function OpenGraphImage({ text, subtitle }: { text: string; subtitle: str
display: 'flex',
flexDirection: 'column',
padding: 64,
paddingTop: 96,
height: '100%',
width: '100%',
background: COLORS.DARK.DEFAULT_BACKGROUND,
Expand Down

1 comment on commit 8bf0b67

@vercel
Copy link

@vercel vercel bot commented on 8bf0b67 Dec 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dg – ./

dg-dgattey.vercel.app
dylangattey.com
dg-git-main-dgattey.vercel.app
dg.vercel.app

Please sign in to comment.