-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
95 lines (84 loc) · 2.26 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
92
93
94
95
import { repositoryName } from './slicemachine.config.json';
import ViteSvgLoader from 'vite-svg-loader';
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ['@nuxt/eslint', '@nuxtjs/prismic', '@nuxtjs/i18n', '@nuxt/image'],
devtools: {
enabled: true,
},
css: ['normalize.css/normalize.css', '@/assets/css/app.css'],
runtimeConfig: {
public: {
commitTag: process.env.COMMIT_TAG || process.env.NUXT_ENV_CURRENT_GIT_TAG,
commitShortSha: process.env.COMMIT_SHORT_SHA || process.env.NUXT_ENV_CURRENT_GIT_SHA,
},
},
future: {
compatibilityVersion: 4,
},
compatibilityDate: '2024-04-03',
vite: {
plugins: [
ViteSvgLoader({
svgoConfig: {
plugins: [
'prefixIds',
'removeTitle',
'removeDesc',
'removeDimensions',
{
name: 'removeAttrs',
params: {
attrs: '(fill|stroke)',
},
},
],
},
defaultImport: 'url',
}),
],
},
postcss: {
plugins: {
'postcss-nested': {},
},
},
eslint: {
checker: true,
config: {
nuxt: {
sortConfigKeys: true,
},
},
},
i18n: {
baseUrl: 'https://interfaceqc.com',
strategy: 'prefix_except_default',
defaultLocale: 'fr',
locales: [
{
code: 'fr',
name: 'Français',
language: 'fr-CA',
},
{
code: 'en',
name: 'English',
language: 'en-CA',
},
],
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root', // recommended
},
},
image: {
provider: 'prismic',
quality: 70,
format: ['webp'],
},
prismic: {
endpoint: repositoryName,
},
});