11import type { Metadata } from "next" ;
2- import { supabase } from "@/utils/supabase/client" ;
2+ // import { supabase } from "@/utils/supabase/client";
33import { fetchDAOByName } from "@/services/dao.service" ;
44import { extractMission } from "@/utils/format" ;
55import { DAOLayoutClient } from "./layout-client" ;
@@ -8,8 +8,8 @@ import { DAOLayoutClient } from "./layout-client";
88// Minimum dimensions: 300x157
99// Maximum dimensions: 4096x4096
1010// Recommended dimensions: 1200x600
11- const TWITTER_IMAGE_WIDTH = 1200 ;
12- const TWITTER_IMAGE_HEIGHT = 600 ;
11+ // const TWITTER_IMAGE_WIDTH = 1200;
12+ // const TWITTER_IMAGE_HEIGHT = 600;
1313
1414// Open Graph recommends 1.91:1 ratio
1515const OG_IMAGE_WIDTH = 1200 ;
@@ -31,20 +31,16 @@ export async function generateMetadata({
3131 }
3232
3333 // Now fetch the token using the DAO ID
34- const { data : token } = await supabase
35- . from ( "tokens" )
36- . select ( "image_url" )
37- . eq ( "dao_id" , dao . id )
38- . single ( ) ;
34+ // const { data: token } = await supabase
35+ // .from("tokens")
36+ // .select("image_url")
37+ // .eq("dao_id", dao.id)
38+ // .single();
3939
4040 // Generate separate URLs for Twitter and Open Graph with correct dimensions
41- const twitterImageUrl = token ?. image_url
42- ? `${ token . image_url } ?w=${ TWITTER_IMAGE_WIDTH } &h=${ TWITTER_IMAGE_HEIGHT } &fit=cover&auto=format`
43- : undefined ;
41+ const twitterImageUrl = "https://aibtc.com/logos/twitter-share-image.jpeg" ;
4442
45- const ogImageUrl = token ?. image_url
46- ? `${ token . image_url } ?w=${ OG_IMAGE_WIDTH } &h=${ OG_IMAGE_HEIGHT } &fit=cover&auto=format`
47- : undefined ;
43+ const ogImageUrl = "https://aibtc.com/logos/twitter-share-image.jpeg" ;
4844
4945 // Extract SEO-friendly shorter description using extractMission
5046 const seoDescription = extractMission ( dao . description ) ;
0 commit comments