Skip to content

Commit

Permalink
Merge pull request #157 from rayanfer32/feat/meta
Browse files Browse the repository at this point in the history
fix(meta): update meta urls
  • Loading branch information
shrivatsabhat authored Apr 7, 2022
2 parents e71774f + 3e78b41 commit c870788
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .env.local.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NEXT_PUBLIC_COINGECKO_BASE_URL = https://api.coingecko.com/api/v3
NEXT_PUBLIC_NEXUS_BASE_URL = http://localhost:5001
NEXT_PUBLIC_TESTNET_BASE_URL = http://localhost:5002
NEXT_PUBLIC_DOMAIN_BASE_URL = http://localhost:3000
NEXT_PUBLIC_DOMAIN_BASE_URL = https://nexplorer.nexus-interactions.io
NEXT_PUBLIC_USE_PROXY_MIDDLEWARE = false
ENABLE_DEVTOOLS = true
Binary file modified public/og_meta_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 4 additions & 14 deletions src/components/Header/PageHeader/PageHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const PageHeader = ({ page = 'HOME', title, description }) => {
description ||
TYPES.PAGEMETA[page.toUpperCase()]?.DESCRIPTION ||
TYPES.PAGEMETA.DESCRIPTION;
const _explorer_domain =
process.env.NEXT_PUBLIC_DOMAIN_BASE_URL || 'https://explorer.nexus.io';
const _explorer_domain = process.env.NEXT_PUBLIC_DOMAIN_BASE_URL || '';

return (
<Head>
Expand All @@ -28,17 +27,11 @@ const PageHeader = ({ page = 'HOME', title, description }) => {
<meta property="og:url" content={_explorer_domain} />
<meta
property="og:image"
content={
`${_explorer_domain}/og_meta_image.jpg` ||
'https://explorer.nexus.io/images/social/home.jpg'
}
content={`${_explorer_domain}/og_meta_image.jpg` || ''}
/>
<meta
property="og:image:secure_url"
content={
`${_explorer_domain}/og_meta_image.jpg` ||
'https://explorer.nexus.io/images/social/home.jpg'
}
content={`${_explorer_domain}/og_meta_image.jpg` || ''}
/>
<meta property="og:title" content={_title} />
<meta property="og:site_name" content="Nexus" />
Expand All @@ -47,10 +40,7 @@ const PageHeader = ({ page = 'HOME', title, description }) => {
<meta name="twitter:title" content={_title} />
<meta
name="twitter:image"
content={
`${_explorer_domain}/og_meta_image.jpg` ||
'https://explorer.nexus.io/images/social/home.jpg'
}
content={`${_explorer_domain}/og_meta_image.jpg` || ''}
/>
</Head>
);
Expand Down

0 comments on commit c870788

Please sign in to comment.