forked from whoisyurii/checkmygit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.config.js
More file actions
35 lines (28 loc) · 1.22 KB
/
site.config.js
File metadata and controls
35 lines (28 loc) · 1.22 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
/**
* Site Configuration
*
* This file contains the configuration for the static GitHub Pages deployment.
* Environment variables can override these default values.
*/
// Check if we're in a Node.js environment (build time) or browser (runtime)
const isNode = typeof process !== 'undefined' && process.env;
export default {
// GitHub username для отображения (может быть переопределен через env)
username: isNode ? process.env.GH_USERNAME || 'your-username' : 'your-username',
// Шаблон по умолчанию: 'github' | 'bento' | 'minimal'
defaultTemplate: 'github',
// Base URL для GitHub Pages (если репозиторий не username.github.io)
basePath: isNode ? process.env.BASE_PATH || '' : '',
// Custom domain (опционально)
customDomain: isNode ? process.env.CUSTOM_DOMAIN || '' : '',
// Метаданные сайта
siteTitle: 'DevCard - Developer Portfolio',
siteDescription: 'GitHub profile + CV in one beautiful static portfolio',
// Опции сборки
build: {
// Кэшировать данные GitHub во время сборки
cacheGitHubData: true,
// Генерировать sitemap
generateSitemap: true
}
};