-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
109 lines (99 loc) · 2.3 KB
/
nuxt.config.ts
File metadata and controls
109 lines (99 loc) · 2.3 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
compatibilityDate: "2025-05-15",
devtools: { enabled: true },
site: {
url: "https://arthurvasconcelos.com.br",
name: "Arthur Vasconcelos",
},
css: ["~/assets/css/main.css"],
icon: {
mode: "svg",
serverBundle: "local",
clientBundle: {
scan: {
globInclude: ["**/*.{vue,ts}"],
},
// dynamic icons not detectable by static scan
icons: ["lucide:sun", "lucide:moon", "lucide:loader"],
sizeLimitKb: 0,
},
},
fonts: {
families: [
{ name: "Space Grotesk", global: true, provider: "google", weights: [400, 600, 700] },
{ name: "JetBrains Mono", global: true, provider: "google", weights: [400, 700] },
],
},
colorMode: {
classPrefix: "",
classSuffix: "",
},
modules: [
"@nuxt/icon",
"@nuxtjs/color-mode",
"@nuxt/ui",
"@nuxt/fonts",
"nuxt-lodash",
"@vueuse/nuxt",
"@nuxt/eslint",
"@nuxtjs/i18n",
"@nuxtjs/sitemap",
"@nuxt/content",
],
content: {
build: {
markdown: {
highlight: {
theme: {
default: "github-light",
dark: "tokyo-night",
},
langs: [
"typescript",
"javascript",
"vue",
"bash",
"shell",
"python",
"go",
"json",
"yaml",
"html",
"css",
"markdown",
],
},
},
},
},
nitro: {
prerender: {
routes: ["/rss.xml", "/pt-br/rss.xml", "/sv/rss.xml"],
failOnError: false,
},
},
i18n: {
baseUrl: "https://arthurvasconcelos.com.br",
defaultLocale: "en-GB",
langDir: "locales",
locales: [
{ code: "en-GB", language: "en-GB", name: "English", file: "en-GB.ts" },
{ code: "pt-BR", language: "pt-BR", name: "Português", file: "pt-BR.ts" },
{ code: "sv", language: "sv-SE", name: "Svenska", file: "sv.ts" },
],
strategy: "prefix_except_default",
lazy: true,
bundle: {
optimizeTranslationDirective: false,
},
detectBrowserLanguage: {
useCookie: true,
cookieKey: "i18n_redirected",
redirectOn: "root",
},
},
});