mirror of
https://github.com/acid-info/logos-ordinals-dashboard.git
synced 2025-02-05 01:53:49 +00:00
feat: add favicon and og
This commit is contained in:
parent
f5a5037f5b
commit
078e1a7f66
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 6.2 KiB |
BIN
public/og.png
Normal file
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 |
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user