generated from toakiryu/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrichtpl.config.tsx
90 lines (82 loc) · 2.53 KB
/
richtpl.config.tsx
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import Config from "@/types/richtpl.config";
/**
* Site configuration object.
* Contains general site information, i18n settings, and theme configuration.
*/
const config: Config = {
// Tagline for the site
tagline: "Next.js Template",
// URL to the favicon
favicon: "/favicon.ico",
// Production URL of the site
url: "https://nextjs-rich-tpl.toakiryu.com",
// Base URL pathname (for GitHub Pages deployment)
baseUrl: "/",
// GitHub deployment configuration
organizationName: "toakiryu", // GitHub organization/user name
projectName: "nextjs-rich-tpl", // GitHub repository name
// Internationalization (i18n) configuration
i18n: {
// Default locale for the site
defaultLocale: "ja",
// List of supported locales
locales: ["ja", "en"],
// Locale-specific configurations
localeConfigs: {
ja: {
label: "日本語", // Label for the Japanese locale
htmlLang: "ja-JP", // HTML language attribute for Japanese
path: "ja", // Path prefix for Japanese locale
},
en: {
label: "English", // Label for the English locale
htmlLang: "en-US", // HTML language attribute for English
path: "en", // Path prefix for English locale
},
},
selectButton: true, // Option to include a locale selection button
},
// Theme and layout configuration
themeConfig: {
// Color mode settings
colorMode: {
defaultMode: "system", // Default color mode (light, dark, or system)
selectSwitch: true, // Whether to allow switching color modes
},
// URL to the social card image (replace with your project's image)
image: "/image/upload/front/nextjs/twitter-card.png",
// Metadata for the site
metadata: {
keywords: [
"Template",
"i18n",
"template",
"Next.js",
"autoprefixer",
"rich",
"tailwindcss",
"framer-motion",
"next-themes",
"vercel-hosting",
"next-intl",
"lucide-icons",
],
authors: { name: "toakiryu", url: "https://toakiryu.com" },
creator: "toakiryu",
icons: "/favicon.ico",
generator: "Next.js",
publisher: "Vercel",
robots: "follow, index",
metadataBase: new URL("https://nextjs-rich-tpl.toakiryu.com"),
},
// Sitemap Configuration
sitemap: {
excludedDirs: [
"error", // Directory for error pages
"not-found", // Directory for 404 pages
"[...rest]", // Directory for [...rest] pages
],
},
},
};
export default config;