diff --git a/.env.example b/.env.example index 4b0ca7a1..1563be05 100644 --- a/.env.example +++ b/.env.example @@ -15,7 +15,7 @@ NEXT_PUBLIC_UMAMI_WEBSITE_ID= # optional. the base URL of a self-hosted Umami instance (including https://) to proxy requests to. if the website ID is # set but this isn't, the managed Umami Cloud endpoint is used. # https://umami.is/docs/bypass-ad-blockers -NEXT_PUBLIC_UMAMI_HOST= +NEXT_PUBLIC_UMAMI_URL= # optional. enables comments on blog posts via GitHub discussions. # https://giscus.app/ diff --git a/app/api/hits/route.ts b/app/api/hits/route.ts index 69955c7a..90b39b41 100644 --- a/app/api/hits/route.ts +++ b/app/api/hits/route.ts @@ -4,12 +4,12 @@ import type { hits as Hits } from "@prisma/client"; export const revalidate = 900; // 15 mins -export async function GET(): Promise< +export const GET = async (): Promise< NextResponse<{ total: Pick; pages: Hits[]; }> -> { +> => { // fetch all rows from db sorted by most hits const pages = await prisma.hits.findMany({ orderBy: [ @@ -28,4 +28,4 @@ export async function GET(): Promise< }); return NextResponse.json({ total, pages }); -} +}; diff --git a/app/birthday/page.tsx b/app/birthday/page.tsx index 45553c5c..10dfee9d 100644 --- a/app/birthday/page.tsx +++ b/app/birthday/page.tsx @@ -20,7 +20,7 @@ export const metadata: Metadata = { }, }; -export default function Page() { +const Page = () => { return ( <> 1996.mov @@ -28,4 +28,6 @@ export default function Page() {