Skip to content

Commit

Permalink
fix og image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
d-ivashchuk committed Apr 4, 2024
1 parent 4348349 commit c0f570c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/api/og/page.tsx → src/app/api/og/route.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* eslint-disable jsx-a11y/alt-text */
/* eslint-disable @next/next/no-img-element */
import { ImageResponse } from "next/og";

export const runtime = "edge";

export default async function GET() {
export async function GET() {
const imageData = await fetch(new URL("./cascade.png", import.meta.url)).then(
(res) => res.arrayBuffer(),
);
Expand Down

0 comments on commit c0f570c

Please sign in to comment.