Skip to content

Commit

Permalink
fix: og image
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed May 24, 2024
1 parent 778800c commit e336d66
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/web/src/app/og/[id]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ export const GET = async (_: Request, props: OGRouteProps) => {
<div
style={{
backgroundImage: `url(data:image/png;base64,${fs.readFileSync(
path.join(process.cwd(), 'public/images/og-background.png'),
{
encoding: 'base64'
}
path.resolve('./public/images/og-background.png'),
{ encoding: 'base64' }
)})`,
width: '100%',
height: '100%',
Expand Down Expand Up @@ -149,7 +147,7 @@ export const GET = async (_: Request, props: OGRouteProps) => {
{
name: 'Roboto Condensed',
data: fs.readFileSync(
path.join(process.cwd(), 'public/fonts/RobotoCondensed-Bold.ttf')
path.resolve('./public/fonts/RobotoCondensed-Bold.ttf')
),
weight: 700,
style: 'normal'
Expand Down

0 comments on commit e336d66

Please sign in to comment.