@@ -5,30 +5,32 @@ import type { Metadata } from "next";
5
5
import { Header } from "@/components/ui/header" ;
6
6
import { Providers } from "@/providers/Providers" ;
7
7
8
+ const appUrl = process . env . NEXT_PUBLIC_URL ;
9
+
8
10
const frame = {
9
11
version : "next" ,
10
- imageUrl : `https://proposals.farcastle.net /image.png` ,
12
+ imageUrl : `${ appUrl } /image.png` ,
11
13
button : {
12
14
title : "Make Proposal" ,
13
15
action : {
14
16
type : "launch_frame" ,
15
17
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` ,
19
21
splashBackgroundColor : "#341A34" ,
20
22
} ,
21
23
} ,
22
24
} ;
23
25
24
26
export async function generateMetadata ( ) : Promise < Metadata > {
25
27
return {
26
- metadataBase : new URL ( "https://proposals.farcastle.net" ) ,
28
+ metadataBase : new URL ( ` ${ appUrl } ` ) ,
27
29
title : "Proposals" ,
28
30
openGraph : {
29
31
title : "Farcastle Proposals" ,
30
32
description : "the actions of organizations" ,
31
- images : `https://proposals.farcastle.net /image.png` ,
33
+ images : `${ appUrl } /image.png` ,
32
34
} ,
33
35
other : {
34
36
"fc:frame" : JSON . stringify ( frame ) ,
0 commit comments