summaryrefslogtreecommitdiff
path: root/src/pages/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/index.tsx')
-rw-r--r--src/pages/index.tsx18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index c008c4d..82ffd99 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,21 +1,13 @@
import { Link } from "waku";
import { Counter } from "../components/counter";
+import { getContextData } from "waku/middleware/context";
+import Main from "../components/Main";
export default async function HomePage() {
- const data = await getData();
+ const { user } = getContextData();
- return (
- <div>
- <title>{data.title}</title>
- <h1 className="text-4xl font-bold tracking-tight">{data.headline}</h1>
- <p>{data.body}</p>
- <Counter />
- <Link to="/about" className="mt-4 inline-block underline">
- About page
- </Link>
- </div>
- );
+ return <Main />;
}
const getData = async () => {
@@ -30,6 +22,6 @@ const getData = async () => {
export const getConfig = async () => {
return {
- render: "static",
+ render: "dynamic",
} as const;
};