-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
45 lines (42 loc) · 899 Bytes
/
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
const baseUrl = 'https://cotowali.org'
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss',
// '@nuxtjs/google-fonts', // not work (@3.0.0-1)
'@nuxtjs/i18n',
'@nuxt/content',
],
/*
googleFonts: {
display: 'swap',
families: {
Lexend: [400, 700],
'M PLUS 1p': [400, 500, 700],
Montserrat: [700],
'Source Code Pro': [400],
},
},
*/
i18n: {
baseUrl,
langDir: 'locales',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
onlyOnRoot: true,
},
locales: [
{ code: 'en', file: 'en.json', iso: 'en-US', name: 'English' },
{ code: 'ja', file: 'ja.json', iso: 'ja-JP', name: '日本語' },
],
defaultLocale: 'en',
vueI18n: {
legacy: false,
},
},
content: {
markdown: {
toc: { depth: 3, searchDepth: 3 },
},
},
})