-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
88 lines (87 loc) · 2.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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'nuxt-icon',
'@nuxtjs/plausible',
'@nuxt/content',
'nuxt-simple-sitemap',
'nuxt-delay-hydration',
'@vueuse/nuxt',
// '@nuxt/image',
],
components: {
global: true,
dirs: ['~/components'],
},
plausible: {
trackLocalhost: true,
domain: process.env.DEV ? 'pedraaldev.local' : process.env.APP_DOMAIN,
apiHost: 'https://plausible.pedraal.dev',
},
// image: {
// dir: 'assets/images'
// },
site: {
url: process.env.APP_ORIGIN,
},
sitemap: {
strictNuxtContentPaths: true,
exclude: [
'/resume_html',
],
},
delayHydration: {
debug: !!process.env.DEV,
mode: 'mount',
},
app: {
head: {
htmlAttrs: { lang: 'fr' },
title: 'Pierre Golfier',
link: [
{ rel: 'icon', href: '/favicon.ico', sizes: 'any' },
{ rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' },
{
href: 'https://fonts.bunny.net/css?family=indie-flower:400|poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&display=swap', rel: 'stylesheet',
},
],
bodyAttrs: {
class: process.env.NODE_ENV === 'development' ? 'debug-screens' : '',
},
},
},
content: {
highlight: {
theme: 'github-dark',
},
},
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '',
storageKey: 'nuxt-color-mode',
},
runtimeConfig: {
appOrigin: process.env.APP_ORIGIN || 'http://localhost:3000',
chromePath: process.env.CHROME_PATH || undefined,
public: {
appDomain: process.env.APP_DOMAIN || 'localhost:3000',
email: '[email protected]',
phone: '06 51 62 31 35',
github: 'https://github.com/pedraal',
linkedin: 'https://www.linkedin.com/in/pierre-golfier-9aa804109/'
},
},
})