-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
85 lines (85 loc) · 1.89 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
extends: ['@nuxt/ui-pro'],
modules: [
'@nuxt/ui',
'@nuxt/fonts',
'@nuxtjs/i18n',
'@nuxtjs/seo',
'nuxt-aos',
'nuxt-rate-limit',
'@dargmuesli/nuxt-cookie-control',
],
plugins: [
"~/plugins/Vue3Lottie.client.ts",
{ src: '~/plugins/typebot.client.js', mode: 'client' }
],
runtimeConfig: {
public: {
url: 'http://localhost:3001',
},
},
i18n: {
strategy: 'no_prefix',
locales: ['en', 'fr'],
defaultLocale: 'en',
detectBrowserLanguage: {
useCookie: true,
fallbackLocale: 'en',
},
},
ui: {
icons: ['ph', 'simple-icons']
},
colorMode: {
preference: 'light'
},
site: {
url: 'https://dallard.tech',
name: 'My portfolio website',
description: 'Welcome to my portfolio website!'
},
nuxtRateLimit: {
routes: {
'/api/llm': {
maxRequests: 3,
intervalSeconds: 120,
},
'/api/minio': {
maxRequests: 10,
intervalSeconds: 30,
},
'/api/static_images': {
maxRequests: 10,
intervalSeconds: 30,
},
'/api/images': {
maxRequests: 10,
intervalSeconds: 30,
},
},
},
cookieControl: {
cookies: {
necessary: [
{
id: 'i18n',
name: {
en: 'Internationalization',
fr: 'Internationalisation',
},
description: {
en: 'This cookie is set by the i18n module to remember the user\'s language preference.',
fr: 'Ce cookie est défini par le module i18n pour se souvenir de la préférence de langue de l\'utilisateur',
},
},
],
optional: [],
},
locales: ['en', 'fr'],
colors: {
checkboxActiveBackground: 'rgb(var(--color-primary-500))',
},
},
})