-
Notifications
You must be signed in to change notification settings - Fork 2
/
page.tsx
35 lines (27 loc) · 825 Bytes
/
page.tsx
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
32
33
34
35
import {Metadata} from "next";
import {API_BASE_URL} from "@/app/constants";
import {getFrameVersion} from "@/app/actions";
export async function generateMetadata(): Promise<Metadata> {
const version = await getFrameVersion();
const imageUrl = `${API_BASE_URL}/images/splash?version=${version}`;
const fcMetadata: Record<string, string> = {
"fc:frame": "vNext",
"fc:frame:post_url": `${API_BASE_URL}/start`,
"fc:frame:image": imageUrl,
"fc:frame:button:1": "Can you guess them all? Let's a-go, Mario!",
};
return {
title: "MVP or not MVP?",
openGraph: {
title: "MVP or not MVP?",
images: [imageUrl],
},
other: {
...fcMetadata,
},
metadataBase: new URL(process.env["HOST"] || "")
};
}
export default async function Page() {
return <p>hello</p>;
}