-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
87 lines (78 loc) · 2.07 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
extends: ['shadcn-docs-nuxt'],
modules: [
'@nuxt/eslint',
'shadcn-nuxt',
'@nuxt/fonts',
'@nuxtjs/seo',
'@vueuse/nuxt',
],
// Opt-in to Nuxt 4 features, remove when v4 is released
future: { compatibilityVersion: 4 },
shadcn: { componentDir: 'app/components/ui' },
// SEO
site: {
url: 'https://v2.egytech.fyi',
name: 'egytech.fyi',
description: `Explore the latest trends in the Egyptian tech market, analyze salaries, and get personalized negotiation strategies based on your CV.`,
defaultLocale: 'en',
},
app: {
head: {
// Favicon
link: [
{
rel: 'icon',
type: 'image/ico',
sizes: '16x16',
href: '/favicon-16x16.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon-32x32.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '192x192',
href: '/android-chrome-192x192.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '512x512',
href: '/android-chrome-512x512.png',
},
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
},
],
// OG Image
meta: [
{ property: 'og:image', content: '/og-image.png' },
{ name: 'twitter:image', content: '/og-image.png' },
],
},
},
// Generate only Nuxt-specific rules as we're using `antfu/eslint-config` for other Vue & TS rules
eslint: { config: { standalone: false } },
// Enable reactive props destructuring
vue: { propsDestructure: true },
// https://github.com/nuxt/nuxt/pull/22558
hooks: {
'components:extend': (components) => {
components.forEach((component) => {
if (component.global) {
component.global = 'sync'
}
})
},
},
devtools: { enabled: true },
compatibilityDate: '2024-07-10',
})