-
-
Notifications
You must be signed in to change notification settings - Fork 205
/
appConfig.ts
59 lines (46 loc) · 1.82 KB
/
appConfig.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
/**
* Some of the defaults defined here can be overwritten by environment variables
* Check lib/environments.ts
*/
// Cache control
export const fileCache: boolean = true
// Google analytics tracking ID (now called measurement ID in version 4)
export const gaMeasurementId: string = 'UA-XXXXXXX_or_G-XXXXXXX'
// Dark mode
export type DarkMode = 'dark' | 'light' | null
export const defaultMode: DarkMode = 'light'
export const overrideOS: boolean = true
// Images
export const nextFeatureImages: boolean = true
export const nextInlineImages: boolean = true
export const imageQuality: number = 80
export const sourceImages: boolean = false
// RSS
export const rssFeed: boolean = true
// Ghost Member Subscriptions
export const memberSubscriptions: boolean = true
// Commenting system
export type CommentingSystem = 'commento' | 'disqus' | null
export const commenting: CommentingSystem = null
export const commentoUrl: string = 'https://cdn.commento.io' // 'https://commento.your-blog.com'
export const disqusShortname: string = 'short-name-here'
// PrismJS
export const prism: boolean = true
export const prismIgnoreMissing: boolean = true
// Contact Page
export const contactPage: boolean = true
export const customPage = {}
// Table of Contents
export const toc: boolean = true
export const maxDepth: number = 2
// Custom site navigation (default: [], label is case sensitive)
// Override: [{ label: 'Home', url: '/' }]
// Add new: [{ label: 'Contact', url: '/contact' }]
import { NavItem } from '@lib/ghost'
export const customNavigation: NavItem[] = [{ label: 'Contact', url: '/contact' }]
// Incremental Static Regenerations (ISR)
// Note: must be disbaled, when using `next export`
export const isr: boolean = false
export const revalidate: number = 10
export const maxNumberOfPosts: number = 20
export const maxNumberOfPages: number = 20