This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.config.ts
164 lines (161 loc) · 4.34 KB
/
base.config.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
import { Config } from "@/types/_config";
import { getURL } from "@/utils/main";
// Base Configuration
const _config: Config = {
year: "2024",
// Author
author: {
name: "Fun117",
url: "https://fun117.vercel.app/",
socialAccounts: {
email: "[email protected]",
github: "https://github.com/Fun117",
twitter: "https://twitter.com/Fun_117",
youtube: "https://www.youtube.com/channel/UCT34DhsVlYoyV8Y4c-MTTrQ",
reddit: "https://www.reddit.com/user/_Fun117/",
discord: "https://discord.com/users/990984460365365258/",
},
},
// Metadata
meta: {
origin: "https://nextjs-base-template.vercel.app", // Site origin
title: "Next.js base template", // Site title
description:
"This Next.js base template is designed as an easy starting point for Next.js projects. It comes with features such as theme switching, i18n (internationalization), and automatic sitemap generation, allowing developers to start their projects quickly.", // Site description
authors: {
name: "Fun117", // Author's name
url: "https://fun117.vercel.app/", // Author's URL
},
Image: { icon: "/favicon.ico", apple: "/favicon.png" }, // Icon images
cardImage:
"https://nextjs-base-template.vercel.app/img/screenshot/en-light-fullscreen.png", // Card image
robots: "follow, index", // Robots meta tag content
url: getURL(), // Site URL
},
// i18n Configuration
i18n: {
namespaces: [
"translation", // Translation file namespaces
"site", // Site-specific translation file namespaces
],
defaultLocale: "ja", // Default language
locales: [
"ja", // Japanese
"en", // English
],
path: "i18n", // Path to translation files
localeConfigs: {
ja: {
label: "日本語", // Japanese label
htmlLang: "ja-JP", // HTML lang attribute value
path: "ja", // Path
},
en: {
label: "English", // English label
htmlLang: "en-US", // HTML lang attribute value
path: "en", // Path
},
},
},
// Sitemap Configuration
sitemap: {
excludedDirs: [
"error", // Directory for error pages
"not-found", // Directory for 404 pages
],
},
navigation: {
ui: {
home_url: "/",
logo: {
url: "/brand/vercel/vercel-icon-light.png",
url_dark: '/brand/vercel/vercel-icon-dark.png',
alt: "Vercel Logo",
},
label: "Next.js base",
style: {
bg: "none",
},
},
contents: [
{
type: "one",
label: "Home",
url: "/",
},
{
type: "one",
label: "About",
url: "/about",
},
{
type: "group",
label: "Development",
links: [
{
label: "Author",
url: "https://fun117.vercel.app/",
target: "_blank",
},
{
label: "Repository",
url: "https://github.com/Fun117/nextjs-base-template",
target: "_blank",
},
],
},
],
},
footer: {
ui: {
label: "Fun117",
logo: {
url: "/brand/fun117/fun117_1080x1080.png",
alt: "Fun117 Logo",
css: "border overflow-hidden rounded-full shadow-sm",
},
style: {
bg: "primary",
dataBsTheme: "dark",
},
},
contents: [
{
label: "Site link",
links: [
{
label: "Home",
url: "/",
},
{
label: "About",
url: "/about",
},
],
},
{
label: "Development",
links: [
{
label: "Repository",
url: "https://github.com/Fun117/nextjs-base-template",
target: "_blank",
},
{
label: "Issues",
url: "https://github.com/Fun117/nextjs-base-template/issues",
target: "_blank",
},
{
label: "Discussions",
url: "https://github.com/Fun117/nextjs-base-template/discussions",
target: "_blank",
},
],
},
],
},
};
// If you update the languages in i18n, you need to manually update the config in src/middleware.ts.
// (If the locales array in i18n is changed, you need to update the matcher section in middleware.ts)
export default _config;