Skip to content

Commit c132581

Browse files
committed
fix(ui): point OG metadata at the app host instead of the CDN
metadataBase, og:url, the sitemap and robots all used SITE_URI, which was the logo CDN host (assets.smold.app) — so every OG image URL resolved to the CDN, which 404s them (no /opengraph-image route there). The app is served from tokens.smold.app; split SITE_URI (the app) from ASSETS_BASE_URI (the CDN). Also give /submit an og:image: its explicit openGraph override dropped the root-inherited image (shallow merge), so reference /opengraph-image explicitly.
1 parent 4ceeae9 commit c132581

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

_config/ui/app/_utils/constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ export const CHAINS: TChainInfo[] = chainsData.chains;
1919
export const TOTAL_TOKENS: number = chainsData.totalTokens;
2020
export const DEFAULT_CHAIN: TChainInfo = CHAINS.find(chain => chain.slug === 'ethereum') || CHAINS[0];
2121

22-
export const SITE_URI = 'https://assets.smold.app';
23-
export const ASSETS_BASE_URI = `${SITE_URI}`;
22+
// The app is served from tokens.smold.app; the logo CDN is a separate host (assets.smold.app).
23+
export const SITE_URI = 'https://tokens.smold.app';
24+
export const ASSETS_BASE_URI = 'https://assets.smold.app';
2425
export const GITHUB_URI = 'https://github.com/SmolDapp/tokenAssets';
2526
export const SMOLD_APP_URI = 'https://smold.app';
2627
export const BRAND_GREEN = '#123524';

_config/ui/app/submit/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ export const metadata: Metadata = {
1212
title: 'Submit a token | Token Assets',
1313
description: DESCRIPTION,
1414
alternates: {canonical: '/submit'},
15-
openGraph: {title: 'Submit a token | Token Assets', description: DESCRIPTION, url: '/submit', type: 'website'}
15+
openGraph: {
16+
title: 'Submit a token | Token Assets',
17+
description: DESCRIPTION,
18+
url: '/submit',
19+
type: 'website',
20+
images: ['/opengraph-image']
21+
}
1622
};
1723

1824
export default async function SubmitPage(): Promise<ReactElement> {

0 commit comments

Comments
 (0)