Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Use Next 14 (#364)
Browse files Browse the repository at this point in the history
* Use Next 14

* Fix lint, ts error

* Fix ghost axios issue
  • Loading branch information
MananTank authored Apr 25, 2024
1 parent 6fad1b2 commit 0c8bda0
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 93 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"flexsearch": "^0.7.31",
"github-slugger": "^2.0.0",
"lucide-react": "^0.286.0",
"next": "13.5",
"next": "^14",
"nextjs-toploader": "^1.5.3",
"node-html-parser": "^6.1.11",
"posthog-js": "^1.96.1",
Expand Down
117 changes: 57 additions & 60 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/app/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function Header() {
"xl:static xl:animate-none xl:flex-row xl:justify-between xl:bg-transparent xl:p-0",
)}
>
<ul className="flex flex-col gap-5 xl:flex-row lg:items-center">
<ul className="flex flex-col gap-5 lg:items-center xl:flex-row">
{links.map((link) => {
return (
<li
Expand Down Expand Up @@ -226,15 +226,15 @@ function DropdownLinks(props: {
return (
<>
{/* desktop */}
<div className="hidden xl:flex items-center">
<div className="hidden items-center xl:flex">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
className="inline-flex gap-1 py-0 px-0 font-medium text-f-300 hover:bg-transparent hover:text-f-100 items-center text-sm"
className="inline-flex items-center gap-1 p-0 text-sm font-medium text-f-300 hover:bg-transparent hover:text-f-100"
>
{props.category}
<ChevronDownIcon className="text-f-300 opacity-70 size-4" />
<ChevronDownIcon className="size-4 text-f-300 opacity-70" />
</Button>
</DropdownMenuTrigger>

Expand Down
4 changes: 2 additions & 2 deletions src/app/api/og/route.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @next/next/no-img-element */
import { ImageResponse } from "next/server";
import { ImageResponse } from "next/og";
import { getBaseUrl } from "../../../lib/getBaseUrl";

export const runtime = "edge";
Expand All @@ -22,7 +22,7 @@ export async function GET(request: Request) {
const title = searchParams.get("title");

if (!icon || !title) {
return new Response(`Failed to generate the image`, {
return new Response("Failed to generate the image", {
status: 500,
});
}
Expand Down
Loading

0 comments on commit 0c8bda0

Please sign in to comment.