-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.dynamic.ts
47 lines (45 loc) · 1.46 KB
/
next.dynamic.ts
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
42
43
44
45
46
47
import defaults from "@/app.config";
/* @return {import('next').Viewport} */
export const PAGE_VIEWPORT = {
themeColor: [
{ media: "(prefers-color-scheme: light)", color: defaults.lightColor },
{ media: "(prefers-color-scheme: dark)", color: defaults.darkColor },
],
};
/* @type {import('next').Metadata} */
export const PAGE_METADATA = {
metadataBase: new URL(defaults.url),
alternates: {
canonical: "/",
types: {
"application/rss+xml": "feed",
},
},
title: defaults.title,
description: defaults.description,
openGraph: {
title: defaults.title,
description: defaults.description,
url: defaults.url,
siteName: defaults.title,
locale: "en_US",
type: "website",
images: "/og-image.png",
},
twitter: {
title: defaults.title,
description: defaults.description,
creator: "@" + defaults.username,
card: "summary_large_image",
images: defaults.url + "/twitter-image.png",
},
icons: {
icon: [
{ url: "/icon.svg", sizes: "any", type: "image/svg+xml" },
{ url: "/favicon.ico", sizes: "32x32", type: "image/x-icon" },
{ url: "/icon-192.png", sizes: "192x192", type: "image/png" },
{ url: "/icon-512.png", sizes: "512x512", type: "image/png" },
],
apple: [{ url: "/apple-icon.png", sizes: "180x180", type: "image/png" }],
},
};