-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathnext-seo.config.js
39 lines (36 loc) · 989 Bytes
/
next-seo.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const { i18n } = require("./next-i18next.config");
const languageAlternates = i18n.locales.map((locale) => ({
hrefLang: locale === i18n.defaultLocale ? "x-default" : locale,
href: `${process.env.NEXT_PUBLIC_SITE_URL}/${
locale !== i18n.defaultLocale ? locale : ""
}`,
}));
const title = "WarWordly";
const description = `Battle your friends on WarWordly`;
const SEO = {
title,
description,
openGraph: {
title,
description,
images: [
{
url: `${process.env.NEXT_PUBLIC_SITE_URL}/og_image.png`,
width: 1200,
height: 630,
alt: title,
},
],
type: "website",
locale: "en_US",
url: process.env.NEXT_PUBLIC_SITE_URL,
site_name: title,
},
twitter: {
handle: "@WarWordly",
site: "@WarWordly",
cardType: "summary_large_image",
},
languageAlternates,
};
export default SEO;