We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e8c2d5 commit 8c209f6Copy full SHA for 8c209f6
1 file changed
components/PageMeta.tsx
@@ -1,8 +1,6 @@
1
-import { type NextPageContext } from 'next';
2
import Head from 'next/head';
3
4
import { BASE_META } from '~/util/Constants';
5
-import getApiUrl from '~/util/getApiUrl';
6
7
type PageMetaProps = {
8
title?: string;
@@ -23,10 +21,7 @@ export default function PageMeta({
23
21
? `Search results for keyword: '${parsedSearchQuery}'`
24
22
: description;
25
26
- const socialImage = getApiUrl(
27
- `/proxy/og?title=${encodeURIComponent(pageTitle)}&description=${encodeURIComponent(finalDescription)}`,
28
- {} as NextPageContext
29
- );
+ const socialImage = `https://${window.location.host}/api/proxy/og?title=${encodeURIComponent(pageTitle)}&description=${encodeURIComponent(finalDescription)}`;
30
31
return (
32
<Head>
0 commit comments