Skip to content

Commit

Permalink
Merge pull request #45 from pontusab/feature/next-13-3
Browse files Browse the repository at this point in the history
Update next and remove @vercel/og
  • Loading branch information
leerob committed Apr 7, 2023
2 parents 8c16432 + 74fb68d commit 69dde7c
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 237 deletions.
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
"lint": "next lint"
},
"dependencies": {
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9",
"@vercel/og": "^0.0.20",
"next": "13.0.4",
"@types/node": "18.15.11",
"@types/react": "18.0.33",
"@types/react-dom": "18.0.11",
"next": "13.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"tinycolor2": "^1.4.2",
"typescript": "4.9.3"
"tinycolor2": "^1.6.0",
"typescript": "5.0.3"
},
"devDependencies": {
"@types/tinycolor2": "^1.4.3"
Expand Down
7 changes: 3 additions & 4 deletions pages/api/avatar/[name].tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { ImageResponse } from "@vercel/og";
import { NextRequest, NextResponse } from "next/server";
import { NextRequest, ImageResponse } from "next/server";
import { renderToReadableStream } from "react-dom/server";
import { generateGradient } from "../../../utils/gradient";

export const config = {
runtime: "experimental-edge",
runtime: "edge",
};

export default async function (req: NextRequest, res: NextResponse) {
export default async function (req: NextRequest) {
const url = new URL(req.url);
const name = url.searchParams.get("name");
const text = url.searchParams.get("text");
Expand Down
Loading

1 comment on commit 69dde7c

@vercel
Copy link

@vercel vercel bot commented on 69dde7c Apr 7, 2023

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:

avatar – ./

avatar.tobi.sh
avatar.vercel.sh
avatar-git-master.vercel.sh

Please sign in to comment.