-
Notifications
You must be signed in to change notification settings - Fork 95
/
nuxt.config.ts
144 lines (130 loc) · 2.74 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
import { defineNuxtConfig } from 'nuxt/config'
import en from './lang/en.json'
export default defineNuxtConfig({
devtools: { enabled: true },
site: {
url:
// eslint-disable-next-line node/prefer-global/process
process.env.NODE_ENV === 'dev'
? 'http://localhost:3000'
: 'https://www.cvfy.xyz',
},
imports: {
autoImport: true,
},
app: {
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'google-site-verification',
name: 'google-site-verification',
content: 'CGbgWpLEg4fyBPWujKEYS3rrwZR4mMU7XfsDEGArchg',
},
],
},
},
// Global CSS (https://go.nuxtjs.dev/config-css)
css: ['@/assets/styles/styles.css'],
// Modules (https://go.nuxtjs.dev/config-modules)
modules: [
'nuxt-module-eslint-config',
'@nuxtjs/i18n',
'@nuxtjs/sitemap',
'@nuxtjs/tailwindcss',
'@vite-pwa/nuxt',
'@nuxt/fonts',
'@nuxt/image',
],
eslintConfig: {
setup: false,
},
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {},
postcss: {
// Add plugin names as key and arguments as value
// Install them before as dependencies with npm or yarn
plugins: {
'postcss-nested': {},
},
},
i18n: {
strategy: 'prefix_and_default',
locales: [
{
code: 'en',
file: 'en.json',
name: 'English',
},
{
code: 'es',
file: 'es.json',
name: 'Español',
},
{
code: 'id',
file: 'id.json',
name: 'Indonesian',
},
{
code: 'de',
file: 'de.json',
name: 'German',
},
{
code: 'fr',
file: 'fr.json',
name: 'Francais',
},
{
code: 'ar',
file: 'ar.json',
name: 'Arabic',
},
{
code: 'zh',
file: 'zh.json',
name: 'Chinese',
},
{
code: 'pt',
file: 'pt.json',
name: 'Portuguese',
},
],
lazy: false,
langDir: 'lang/',
defaultLocale: 'en',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root',
},
},
router: {
options: {
linkActiveClass: 'form__btn--active',
},
},
pwa: {
devOptions: {
enabled: true,
},
registerType: 'autoUpdate',
pwaAssets: {
config: true,
},
manifest: {
name: en['title-tag'],
short_name: 'CvFy',
description: en.description,
theme_color: '#f3f4f6',
},
},
sitemap: {
autoI18n: true,
},
compatibilityDate: '2024-10-08',
})