-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
94 lines (93 loc) · 3.18 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
/** @format */
export default defineNuxtConfig({
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
link: [
{
rel: 'preconnect',
href: 'https://fonts.googleapis.com',
},
{
rel: 'preconnect',
href: 'https://fonts.gstatic.com',
crossorigin: '',
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400;1,500;1,600;1,700&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,700;0,900;1,100;1,200;1,400;1,800&family=Cairo:wght@200;300;400;500;600;700;800&display=swap',
},
],
style: [],
script: [],
noscript: [],
},
pageTransition: { name: 'page', mode: 'out-in' }
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: `
@use "@/assets/scss/base/_typography.scss" as *;
@use "@/assets/scss/components/_buttons" as *;
@use "@/assets/scss/utilities/_mixins" as *;
@use "@/assets/scss/utilities/_animations" as *;
@use "@/assets/scss/utilities/_variables.scss" as *;`,
},
},
},
},
modules: ['nuxt-icon', '@nuxtjs/color-mode', '@nuxtjs/i18n', 'nuxt-security'],
i18n: {
lazy: true,
langDir: "locales",
strategy: 'prefix',
locales: [
{
code: "en",
iso: "en-US",
name: "EN",
file: "en.json",
},
{
code: "fr",
iso: "fr-FR",
name: "FR",
file: "fr.json",
},
{
code: "ar",
iso: "ar-SD",
name: "AR",
file: "ar.json",
}
],
defaultLocale: "en",
// vueI18n: './i18n.config.ts'
},
colorMode: {
preference: 'dark', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
classPrefix: '',
},
components: [
{
path: '~/components',
extensions: ['.vue'],
}
],
runtimeConfig: {
CLIENT_ID: process.env.CLIENT_ID,
CLIENT_SECRET: process.env.CLIENT_SECRET,
REDIRECT_URL: process.env.REDIRECT_URL,
SENDER_USER: process.env.SENDER_USER,
REFRESH_TOKEN: process.env.REFRESH_TOKEN,
RECEIVER_USER: process.env.RECEIVER_USER,
public: {
// This object is intended to expose environment variables to the frontend!
}
},
ssr: false,
});