-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
91 lines (88 loc) · 1.94 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
86
87
88
89
90
91
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: {
v1: {
prefix: "/v1",
driver: "fs",
base: resolve(__dirname, "content-v1/en"),
},
"v1-ja": {
prefix: "/ja/v1",
driver: "fs",
base: resolve(__dirname, "content-v1/ja"),
},
"v1-fr": {
prefix: "/fr/v1",
driver: "fs",
base: resolve(__dirname, "content-v1/fr"),
},
"v1-ru": {
prefix: "/ru/v1",
driver: "fs",
base: resolve(__dirname, "content-v1/ru"),
},
},
highlight: {
preload: ["xml"],
},
},
nitro: {
prerender: {
routes: [
"/",
"/blog/announcing-v2",
// TODO: move to github module
"/api/_github/releases/.json",
],
},
},
modules: ["@nuxtlabs/github-module", "@nuxthq/studio"/* , "nuxt-meilisearch" */],
extends: process.env.DOCUS_THEME_PATH || "@nuxt-themes/docus",
github: {
owner: "nuxt",
repo: "content",
branch: "main",
},
colorMode: {
preference: "dark",
},
runtimeConfig: {
content: {
// @ts-ignore
// TODO: fix types
documentDriven: {
host: "https://content.nuxtjs.org",
},
},
public: {
/* meilisearch: {
hostUrl: "http://my-meilisearch-server.domain.com",
searchApiKey: "<your_public_key>",
adminApiKey: "<your_secret_key>",
serverSideUsage: true,
instantSearch: {
theme: "algolia",
},
}, */
},
},
});