-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
74 lines (66 loc) · 1.57 KB
/
nuxt.config.ts
File metadata and controls
74 lines (66 loc) · 1.57 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
// eslint-disable
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: "My Page Title",
link: [
// https://nuxt.com/deploy/github-pages and https://vite.dev/guide/env-and-mode.html for details.
// !!! Make use of compile time environment var NUXT_APP_BASE_URL to work for GitHub Pages deployments as well.
// Assumption: favicon files in ~/public as ~/public/favicon.ico, ~/public/favicon-32x32.png etc.:
{
rel: "icon",
type: "image/x-icon",
href: (import.meta.env.NUXT_APP_BASE_URL ? import.meta.env.NUXT_APP_BASE_URL : "/") + "favicon.ico"
}
// ... add probable other icon variants accordingly
],
},
},
modules: [
'@nuxt/ui',
'@nuxt/eslint',
'@nuxt/image',
'@vueuse/nuxt',
'@pinia/nuxt',
'@nuxtjs/i18n',
'@nuxt/content',
],
devtools: { enabled: true },
css: ['~/assets/css/main.css'],
colorMode: {
preference: 'light',
},
future: {
compatibilityVersion: 4,
},
compatibilityDate: '2024-11-01',
eslint: {
config: {
stylistic: true,
},
},
icon: {
provider: "iconify",
clientBundle: {
scan: true,
}
},
i18n: {
defaultLocale: 'en',
// add no_prefix to avoid prefixing the locale in the URL like /de/...
strategy: "no_prefix",
locales: [
{
code: 'en',
name: 'English',
file: 'en.json',
},
{
code: 'de',
name: 'German',
file: 'de.json',
},
],
},
})