make async

This commit is contained in:
Cayden Schwechten 2026-08-05 12:36:31 -05:00
parent a096a5ff5b
commit 869809f11a
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
import {getCategorizedArticles} from "@/lib/articles";
import ArticleItemList from "@/components/ArticleListItem";
export default function BlogPage() {
export default async function BlogPage() {
const articles = getCategorizedArticles()
return (

View file

@ -1,4 +1,4 @@
export default function Contact() {
export default async function Contact() {
return (
<div className="flex flex-col items-center justify-center min-h-screen py-2">
<h1 className="text-4xl font-bold">Contact page, wip.</h1>

View file

@ -22,7 +22,7 @@ export const metadata: Metadata = {
description: "Come and see what I'm all about.",
};
export default function RootLayout({
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;

View file

@ -1,6 +1,6 @@
import React from "react";
export default function Home() {
export default async function Home() {
return (
<main className="mx-auto mb-20 mt-20 flex w-11/12 max-w-4xl flex-col gap-12 md:w-2/3">
<section className="flex flex-col items-center gap-8 text-center font-cormorantGaramond">