-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
69 lines (69 loc) · 2.34 KB
/
Copy pathconfig.js
File metadata and controls
69 lines (69 loc) · 2.34 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
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
/**
* markdisk-cms configuration.
* Override via environment variables or edit directly.
*/
module.exports = {
/** When true, exposes IndexNow debug/submit HTTP routes (local dev only). */
debugRoutes: process.env.ENABLE_DEBUG_ROUTES === 'true',
port: process.env.PORT || 3080,
baseUrl: process.env.BASE_URL || 'http://localhost:3080',
siteName: process.env.SITE_NAME || 'Markdisk',
siteTagline: process.env.SITE_TAGLINE || 'A file-based publishing CMS',
/**
* Homepage hero: pin a specific post by section/slug path or short slug.
* Env HOME_FEATURED_SLUG overrides when non-empty.
*/
homeFeatured: process.env.HOME_FEATURED_SLUG || null,
/** Section keys and labels for /section/:key */
sections: [
{
key: 'news',
label: 'News',
children: [
{ key: 'news/announcements', label: 'Announcements' },
{ key: 'news/updates', label: 'Updates' }
]
},
{
key: 'guides',
label: 'Guides',
children: [
{ key: 'guides/tutorials', label: 'Tutorials' },
{ key: 'guides/reference', label: 'Reference' }
]
},
{
key: 'reports',
label: 'Reports',
children: [
{ key: 'reports/analysis', label: 'Analysis' }
]
}
],
/**
* Email-gated reports: preview on site, PDF via optional SES, signups in SQLite.
*/
leadMagnet: {
dbPath: process.env.LEAD_MAGNET_DB || 'data/lead-magnets/lead-magnets.sqlite',
pdfDir: process.env.LEAD_MAGNET_PDF_DIR || 'data/lead-magnets/pdfs',
fromEmail: process.env.SES_FROM_EMAIL || '',
replyTo: process.env.LEAD_MAGNET_REPLY_TO || '',
region: process.env.AWS_REGION || 'us-east-1',
sendEnabled: process.env.LEAD_MAGNET_SEND_EMAIL !== 'false',
defaultHeadline: 'This report and full data are available free in your email.',
defaultButton: 'Get my report',
disclaimer: 'By submitting your email you agree to receive updates. Unsubscribe anytime.'
},
/** IndexNow API configuration (optional) */
indexNow: {
apiKey: process.env.INDEXNOW_KEY || '',
apiEndpoint: process.env.INDEXNOW_ENDPOINT || 'https://yandex.com/indexnow',
host: process.env.INDEXNOW_HOST || '',
get enabled() {
return !!(this.apiKey && this.host);
},
get keyLocation() {
return this.apiKey && this.host ? `https://${this.host}/${this.apiKey}.txt` : '';
}
}
};