-
-
Notifications
You must be signed in to change notification settings - Fork 605
/
nuxt.config.ts
executable file
·85 lines (82 loc) · 1.6 KB
/
nuxt.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
import { resolve } from 'pathe'
import consola from 'consola'
const alias = {}
if (process.env.NODE_ENV === 'development') {
consola.warn('Using local @nuxt/content!')
alias['@nuxt/content'] = '../src/module.ts'
}
export default defineNuxtConfig({
alias,
app: {
head: {
script: [
{
defer: true,
'data-domain': 'content.nuxtjs.org',
src: 'https://plausible.io/js/script.js'
}
]
}
},
content: {
sources: [
{
name: 'v1',
prefix: '/v1',
driver: 'fs',
base: resolve(__dirname, 'content-v1/en')
},
{
name: 'v1-ja',
prefix: '/ja/v1',
driver: 'fs',
base: resolve(__dirname, 'content-v1/ja')
},
{
name: 'v1-fr',
prefix: '/fr/v1',
driver: 'fs',
base: resolve(__dirname, 'content-v1/fr')
},
{
name: 'v1-ru',
prefix: '/ru/v1',
driver: 'fs',
base: resolve(__dirname, 'content-v1/ru')
}
],
highlight: {
preload: ['xml']
}
},
nitro: {
prerender: {
routes: [
'/',
'/blog/announcing-v2'
]
}
},
modules: ['@nuxtlabs/github-module'],
extends: process.env.DOCUS_THEME_PATH || '@nuxt-themes/docus',
github: {
owner: 'nuxt',
repo: 'content',
branch: 'main'
},
colorMode: {
preference: 'dark'
},
runtimeConfig: {
public: {
algolia: {
applicationId: '',
apiKey: '',
langAttribute: 'lang',
docSearch: {
indexName: 'content-nuxtjs'
}
}
}
}
})