-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
150 lines (144 loc) · 3.92 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
145
146
147
148
149
150
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: false },
compatibilityDate: '2024-10-09',
app: {
pageTransition: { name: 'page', mode: 'out-in'},
head: {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width,initial-scale=1' },
{ name: 'googlebot', content: 'index, follow' },
{ name: 'author', content: 'Eralp Özcan' },
{ hid: 'robots', name: 'robots', content: 'index, follow'},
{ name: 'application-name', content: 'Eralp Özcan' },
],
link: [
{ rel: 'icon', type: 'image/png', href: '/favicon.png'},
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'icon', type: 'image/png', href: '/favicon-32x32.png', sizes: '32x32' },
{ rel: 'icon', type: 'image/png', href: '/favicon-16x16.png', sizes: '16x16' },
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png', sizes: '180x180' },
{ rel: 'manifest', href: '/site.webmanifest' },
],
noscript: [
{ children: 'JavaScript is required' }
]
},
},
modules: [
'@nuxt/content',
'@nuxtjs/tailwindcss',
'@nuxt/image',
'@nuxtjs/i18n',
'@nuxt/icon',
'@nuxt/scripts',
'@nuxtjs/color-mode',
'nuxt-vitalizer',
'nuxt-calendly',
'@nuxtjs/seo',
'nuxt-security',
// '@sentry/nuxt/module',
'@nuxtjs/web-vitals'
],
runtimeConfig: {
public: {
calendyStatus: process.env.NUXT_CALENDLY_ENABLED,
calendyUrl: process.env.NUXT_CALENDLY_URL,
contactFormApi: process.env.NUXT_CONTACT_FORM_API,
sentry: {
dsn: process.env.NUXT_SENTRY_DSN,
},
},
githubToken: process.env.NUXT_GITHUB_TOKEN,
},
routeRules: {
'/': { prerender: true }
},
calendly: {
isEnabled: true,
loadWidgetCSS: true,
loadWidgetCloseIconSvg: false,
},
colorMode: {
preference: 'system', // default theme
fallback: 'light', // fallback theme
dataValue: 'theme', // activate data-theme in <html> tag
classSuffix: '',
},
content: {
highlight: {
theme: 'nord',
preload: ['ts','js','css','java','json','bash','vue']
},
},
i18n: {
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root'
},
vueI18n: './locales/i18n.config.ts'
},
image: {
imagekit: {
baseURL: process.env.NUXT_IMAGEKIT_BASE_URL,
}
},
nitro: {
prerender: {
routes: ['/sitemap.xml']
}
},
scripts: {
registry: {
googleAnalytics: {
id: `${process.env.NUXT_GOOGLE_ANALYTICS_ID}`
},
googleTagManager: {
id: `${process.env.NUXT_PUBLIC_GTM_ID}`
},
}
},
schemaOrg: {
identity: {
type: 'Person',
name: 'Eralp Özcan',
url: 'https://eralpozcan.dev',
logo: 'https://eralpozcan.dev/og-image.png'
}
},
// sentry: {
// sourceMapsUploadOptions: {
// org: "eralp-projects",
// project: "eralpozcandev",
// authToken: process.env.NUXT_SENTRY_AUTH_TOKEN,
// },
// },
security: {
headers: {
contentSecurityPolicy: false,
// contentSecurityPolicy: {
// 'img-src': ["'self'", 'data:', 'https://ik.imagekit.io', 'https://repository-images.githubusercontent.com','https://opengraph.githubassets.com'],
// },
referrerPolicy: 'strict-origin-when-cross-origin',
xFrameOptions: 'DENY',
},
hidePoweredBy: true,
},
site: {
url: process.env.NUXT_PUBLIC_SITE_URL,
name: 'Eralp Özcan',
description: 'Eralp Özcan is a Full Stack Developer who is passionate about various web technologies. I am currently working at TatilDukkani as a frontend developer.',
defaultLocale: 'en',
},
vitalizer: {
disablePrefetchLinks: true,
},
webVitals: {
provider: 'ga',
ga: {
id: `${process.env.NUXT_GOOGLE_ANALYTICS_ID}`,
},
},
})