-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
57 lines (55 loc) · 1.35 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import fs from 'fs';
import path from 'path';
export default defineNuxtConfig({
app: {
head: {
script: [{src: 'https://stats.ha-infra.xyz/info.js', async: true, defer: 'true', referrerpolicy: 'unsafe-url', 'data-domain': 'billabear.com'}],
}
},
devtools: { enabled: true },
css: ['~/assets/css/main.css'],
modules: [
"@nuxtjs/i18n",
"@nuxt/content",
"@nuxt/image",
'nuxt-rollbar',
"@nuxtjs/sitemap"
],
rollbar: {
serverAccessToken: 'a057384b0e49477994ad8ae9acebde54',
clientAccessToken: 'd918ae46bc2443c88bc0d5871bb42ca8',
},
sitemap: {
strictNuxtContentPaths: true
},
i18n: {
strategy: 'prefix_except_default',
defaultLocale: 'en',
vueI18n: './i18n.config.ts',
locales: [
{code: 'en', name: 'English'},
{code: 'es', name: 'Español'},
{code: 'fr', name: 'Français'},
{code: 'de', name: 'Deutsch'},
{code: 'it', name: 'Italiano'},
],
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root' // recommended
}
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
content: {
highlight: {
langs: ['php', 'js', 'json', 'shell', 'javascript', 'python', 'vue'],
theme: 'github-dark',
}
}
})