Skip to content

Commit

Permalink
Fixing the open graph image now showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahdigh committed Oct 18, 2023
1 parent bd0c65d commit 8a094b0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Binary file removed public/og.png
Binary file not shown.
Binary file added public/pw-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions src/components/layout/Seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import {
import { DefaultSeo } from 'next-seo'

export function Seo() {
const origin =
typeof window !== 'undefined' && window.location.origin
? window.location.origin
: SITE_URL
// const origin =
// typeof window !== 'undefined' && window.location.origin
// ? window.location.origin
// : SITE_URL

const origin = SITE_URL

return (
<DefaultSeo
Expand All @@ -25,7 +27,7 @@ export function Seo() {
url: origin,
images: [
{
url: `${origin}/og.png`,
url: `${origin}/pw-logo.jpg`,
alt: `${SITE_NAME} Open Graph Image`,
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { optimism, optimismGoerli } from '@wagmi/chains'

export const SITE_NAME = 'Pairwise'
export const SITE_DESCRIPTION = 'Pairwise by General Magic.'
export const SITE_URL = 'https://pairwise.generalmagic.io/'
export const SITE_URL = 'https://staging.pairwise.vote'

export const SOCIAL_TWITTER = 'generalmagicio'
export const SOCIAL_GITHUB = 'GeneralMagicio/pairwise'
Expand Down

0 comments on commit 8a094b0

Please sign in to comment.