-
-
Notifications
You must be signed in to change notification settings - Fork 618
Expand file tree
/
Copy pathmetadata.ts
More file actions
41 lines (36 loc) · 1.07 KB
/
metadata.ts
File metadata and controls
41 lines (36 loc) · 1.07 KB
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
40
41
import type { Metadata } from "next";
export const TITLE = "openstatus";
export const DESCRIPTION =
"Open-source platform to monitor your services and keep your users informed.";
const OG_TITLE = "openstatus";
const OG_DESCRIPTION = "Monitor your services and keep your users informed.";
const FOOTER = "app.openstatus.dev";
const IMAGE = "assets/og/dashboard-v2.png";
export const defaultMetadata: Metadata = {
title: {
template: `%s | ${TITLE}`,
default: TITLE,
},
description: DESCRIPTION,
metadataBase: new URL("https://www.openstatus.dev"),
robots: {
index: false,
follow: false,
},
};
export const twitterMetadata: Metadata["twitter"] = {
title: TITLE,
description: DESCRIPTION,
card: "summary_large_image",
images: [
`/api/og?title=${OG_TITLE}&description=${OG_DESCRIPTION}&footer=${FOOTER}&image=${IMAGE}`,
],
};
export const ogMetadata: Metadata["openGraph"] = {
title: TITLE,
description: DESCRIPTION,
type: "website",
images: [
`/api/og?title=${OG_TITLE}&description=${OG_DESCRIPTION}&footer=${FOOTER}&image=${IMAGE}`,
],
};