forked from styxlab/next-cms-ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appConfig.ts
55 lines (43 loc) · 1.67 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
/**
* Some of the defaults defined here can be overwritten by environment variables
* Check lib/environments.ts
*/
// Cache control
export const fileCache: boolean = true
// 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)
// Disable ISR when using `next export`, otherwise enable it
export const isr: boolean = !!!process.env.IS_EXPORT
export const maxNumberOfPosts: number = 20
export const maxNumberOfPages: number = 20