feat: add favicon and og

This commit is contained in:
jinhojang6 2024-10-03 20:45:53 +09:00
parent f5a5037f5b
commit 078e1a7f66
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8
6 changed files with 7 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
public/og.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

View File

@ -1,5 +1,4 @@
import { siteConfigs } from '@/configs/site.configs'
import { getOpenGraphImageUrl } from '@/utils/og.utils'
import { getWebsiteUrl } from '@/utils/route.utils'
import Head from 'next/head'
@ -33,11 +32,12 @@ export default function SEO({
pagePath = '',
noIndex = false,
}: Metadata) {
const ogImageUrl =
imageUrl ||
getOpenGraphImageUrl({
pagePath,
})
// const ogImageUrl =
// imageUrl ||
// getOpenGraphImageUrl({
// pagePath,
// })
const ogImageUrl = `${getWebsiteUrl()}/og.png`
const title = _title || siteConfigs.title
const description = _description || siteConfigs.description

View File

@ -1,7 +1,7 @@
export const getWebsiteUrl = () => {
if (typeof window === 'undefined')
// return process.env.NEXT_PUBLIC_SITE_URL || 'https://dev.new-acid-info.vercel.app'
return 'https://logos-ordinals-dashboard.vercel.app'
return 'https://dashboard.logos.co'
const url = new URL(window.location.href)
return url.origin