Use configured domain in SEO tag

This commit is contained in:
James Grugett 2022-09-11 14:10:40 -05:00
parent 1e2593894c
commit 66b63881a1

View File

@ -1,6 +1,7 @@
import { ReactNode } from 'react' import { ReactNode } from 'react'
import Head from 'next/head' import Head from 'next/head'
import { Challenge } from 'common/challenge' import { Challenge } from 'common/challenge'
import { ENV_CONFIG } from 'common/envs/constants'
export type OgCardProps = { export type OgCardProps = {
question: string question: string
@ -88,7 +89,7 @@ export function SEO(props: {
{url && ( {url && (
<meta <meta
property="og:url" property="og:url"
content={'https://manifold.markets' + url} content={'https://' + ENV_CONFIG.domain + url}
key="url" key="url"
/> />
)} )}