mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-25 22:35:49 -04:00
bump some deps
This commit is contained in:
@@ -7,7 +7,7 @@ import type { DetailedPageStats, SiteStats } from "../../types";
|
||||
|
||||
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
try {
|
||||
// return overall site stats if slug not specified
|
||||
// return overall site stats
|
||||
const result = await getSiteStats();
|
||||
|
||||
// let Vercel edge cache results for 15 mins
|
||||
|
||||
@@ -70,7 +70,7 @@ const Note = ({ frontMatter, source }: InferGetStaticPropsType<typeof getStaticP
|
||||
};
|
||||
|
||||
export const getStaticProps: GetStaticProps<NoteWithSource, Pick<NoteFrontMatter, "slug">> = async ({ params }) => {
|
||||
if (!params || !params.slug) {
|
||||
if (!params?.slug) {
|
||||
return {
|
||||
notFound: true,
|
||||
};
|
||||
|
||||
@@ -57,7 +57,7 @@ const Privacy = () => {
|
||||
|
||||
<p>
|
||||
The <Link href="https://github.com/jakejarvis/jarv.is/blob/main/prisma/schema.prisma">database schema</Link>,{" "}
|
||||
<Link href="https://github.com/jakejarvis/jarv.is/blob/main/pages/api/hits.ts">serverless function</Link> and{" "}
|
||||
<Link href="https://github.com/jakejarvis/jarv.is/blob/main/pages/api/count.ts">serverless function</Link> and{" "}
|
||||
<Link href="https://github.com/jakejarvis/jarv.is/blob/main/components/HitCounter/HitCounter.tsx">
|
||||
client script
|
||||
</Link>{" "}
|
||||
|
||||
Reference in New Issue
Block a user