Skip to content

Commit 91c70d5

Browse files
authored
Merge pull request #71 from HausDAO/dev
deploy
2 parents c344c4e + a2018f8 commit 91c70d5

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/app/dao/[chainid]/[daoid]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
1313

1414
const frame = {
1515
version: "next",
16-
imageUrl: `${appUrl}/opengraph-image`,
16+
imageUrl: `${appUrl}/dao/${chainid}/${daoid}/opengraph-image`,
1717
button: {
1818
title: "Make Proposal",
1919
action: {

src/app/layout.tsx

+8-6
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,32 @@ import type { Metadata } from "next";
55
import { Header } from "@/components/ui/header";
66
import { Providers } from "@/providers/Providers";
77

8+
const appUrl = process.env.NEXT_PUBLIC_URL;
9+
810
const frame = {
911
version: "next",
10-
imageUrl: `https://proposals.farcastle.net/image.png`,
12+
imageUrl: `${appUrl}/image.png`,
1113
button: {
1214
title: "Make Proposal",
1315
action: {
1416
type: "launch_frame",
1517
name: "Proposals",
16-
url: "https://proposals.farcastle.net",
17-
iconImageUrl: `https://proposals.farcastle.net/icon.png`,
18-
splashImageUrl: `https://proposals.farcastle.net/splash.png`,
18+
url: `${appUrl}`,
19+
iconImageUrl: `${appUrl}/icon.png`,
20+
splashImageUrl: `${appUrl}/splash.png`,
1921
splashBackgroundColor: "#341A34",
2022
},
2123
},
2224
};
2325

2426
export async function generateMetadata(): Promise<Metadata> {
2527
return {
26-
metadataBase: new URL("https://proposals.farcastle.net"),
28+
metadataBase: new URL(`${appUrl}`),
2729
title: "Proposals",
2830
openGraph: {
2931
title: "Farcastle Proposals",
3032
description: "the actions of organizations",
31-
images: `https://proposals.farcastle.net/image.png`,
33+
images: `${appUrl}/image.png`,
3234
},
3335
other: {
3436
"fc:frame": JSON.stringify(frame),

0 commit comments

Comments
 (0)