-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
126 lines (116 loc) · 3.24 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'@nuxtjs/i18n',
'@nuxt/image',
'@vueuse/nuxt',
'@nuxtjs/robots',
"@nuxtjs/sitemap"
],
runtimeConfig: {
public: {
gsiClientID: '',
apiBase: 'https://api.greenrute.com/',
},
},
site: {
url: 'https://greenrute.com',
},
sitemap: {
urls: () => ([
'/uk',
'/uk/login',
'/uk/register',
'/uk/privacy-policy',
'/en',
'/en/login',
'/en/register',
'/en/privacy-policy',
'/de',
'/de/login',
'/de/register',
'/de/privacy-policy',
]),
excludeAppSources: true,
},
colorMode: {
classSuffix: '',
},
i18n: {
locales: [
{
code: 'en',
language: 'en-US',
name: 'English',
icon: 'English',
files: ['./en/general.yaml', './en/homepage.yaml'],
},
{
code: 'de',
language: 'de-DE',
name: 'Deutsch',
icon: 'German',
files: ['./de/general.yaml', './de/homepage.yaml'],
},
{
code: 'uk',
language: 'uk-UA',
name: 'Українська',
icon: 'Ukrainian',
files: ['./uk/general.yaml', './uk/homepage.yaml'],
},
],
defaultLocale: 'uk',
strategy: 'prefix_and_default',
detectBrowserLanguage: {
redirectOn: 'no prefix',
},
},
css: [
'~/assets/css/fonts.css',
'~/assets/css/animations.css',
'~/assets/css/datepicker.css',
],
postcss: {
plugins: {
'postcss-focus-visible': {
replaceWith: '[data-focus-visible-added]',
},
autoprefixer: {},
}
},
build: {
transpile: [
'@heroicons/vue',
'vue-slicksort',
'canvas-confetti',
'focus-visible',
'@vuepic/vue-datepicker',
'object-hash',
'tailwindcss',
],
},
experimental: {
payloadExtraction: false,
},
app: {
head: {
link: [
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' },
{ rel: 'manifest', href: '/site.webmanifest' },
// @ts-ignore
{ rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#16a34a' },
],
meta: [
{ name: 'msapplication-TileColor', content: '#ffffff' },
process.env.NODE_ENV !== 'production' ? {} : { 'http-equiv': 'content-security-policy', content: "object-src 'none'; base-uri 'self'; default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://families.google.com https://accounts.google.com/gsi/client; style-src 'self' 'unsafe-inline' https://accounts.google.com/gsi/style; font-src 'self' data:; img-src 'self' data: images.unsplash.com gravatar.com lh3.googleusercontent.com profile-pictures.greenrute.com; frame-src https://accounts.google.com/gsi/; connect-src 'self' api.greenrute.com vitals.vercel-insights.com vitals.vercel-analytics.com https://accounts.google.com/gsi/;" },
],
},
},
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
})