summaryrefslogtreecommitdiff
path: root/src/pages/login.tsx
blob: 2c9f643ed26550bcd1721158d1504d309eb98794 (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
28
29
30
31
import AuthScreen from "@/components/Login2";
import { Link } from "waku";
import db from "@/lib/db";
import { getContextData } from "waku/middleware/context";

export default async function AuthPage() {
  const ctx = getContextData();
  console.log({ ctx });
  const data = await getData();

  return (
    <div>
      <AuthScreen />
    </div>
  );
}

const getData = async () => {
  // const data = {
  //   title: "Waku",
  //   headline: "Waku",
  //   body: "Hello world!",
  // };
  // return data;
};

export const getConfig = async () => {
  return {
    render: "static",
  } as const;
};