blob: 82ffd99761c0e52f2f4fd9668bbcb752e4e61120 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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 { user } = getContextData();
return <Main />;
}
const getData = async () => {
const data = {
title: "Waku",
headline: "Waku",
body: "Hello world!",
};
return data;
};
export const getConfig = async () => {
return {
render: "dynamic",
} as const;
};
|