Skip to content

Commit

Permalink
fix: change font url
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Nov 18, 2023
1 parent 6e0c39c commit 210c651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/og/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const runtime = "edge";

export async function GET(request: Request) {
const fontData = await fetch(
new URL("../../../../assets/EASTARJET-Medium.ttf", import.meta.url),
"https://github.com/ooooorobo/oooooroblog/raw/main/assets/EASTARJET-Medium.ttf",
).then((res) => res.arrayBuffer());
const { searchParams } = new URL(request.url);

Expand Down
1 change: 1 addition & 0 deletions src/app/posts/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { getPostDetail, getPostMeta } from "@src/business/post";
import { FadeIn } from "@src/styles/animation";

export type PostPageProps = { params: { slug: string } };

const codePrefix = `
if (typeof process === 'undefined') {
globalThis.process = { env: {} }
Expand Down

0 comments on commit 210c651

Please sign in to comment.