Skip to content

Commit 7d9c879

Browse files
authored
Merge pull request #69 from HausDAO/deeplinking
bad url in build
2 parents 5cff7d7 + c75ce19 commit 7d9c879

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
2727
},
2828
};
2929
return {
30-
metadataBase: new URL(`${appUrl}`),
3130
title: "Proposals",
3231
openGraph: {
3332
title: "Farcastle Proposals",

src/app/layout.tsx

+6-8
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,30 @@ 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-
108
const frame = {
119
version: "next",
12-
imageUrl: `${appUrl}/image.png`,
10+
imageUrl: `https://proposals.farcastle.net/image.png`,
1311
button: {
1412
title: "Make Proposal",
1513
action: {
1614
type: "launch_frame",
1715
name: "Proposals",
18-
url: "${appUrl}",
19-
iconImageUrl: `${appUrl}/icon.png`,
20-
splashImageUrl: `${appUrl}/splash.png`,
16+
url: "https://proposals.farcastle.net",
17+
iconImageUrl: `https://proposals.farcastle.net/icon.png`,
18+
splashImageUrl: `https://proposals.farcastle.net/splash.png`,
2119
splashBackgroundColor: "#341A34",
2220
},
2321
},
2422
};
2523

2624
export async function generateMetadata(): Promise<Metadata> {
2725
return {
28-
metadataBase: new URL(`${appUrl}`),
26+
metadataBase: new URL("https://proposals.farcastle.net"),
2927
title: "Proposals",
3028
openGraph: {
3129
title: "Farcastle Proposals",
3230
description: "the actions of organizations",
33-
images: `${appUrl}/image.png`,
31+
images: `https://proposals.farcastle.net/image.png`,
3432
},
3533
other: {
3634
"fc:frame": JSON.stringify(frame),

0 commit comments

Comments
 (0)