-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
101 lines (90 loc) · 3.11 KB
/
nuxt.config.ts
File metadata and controls
101 lines (90 loc) · 3.11 KB
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
// https://nuxt.com/docs/api/configuration/nuxt-config
import tailwindcss from '@tailwindcss/vite';
export default defineNuxtConfig({
modules: ['@nuxtjs/google-fonts', '@nuxtjs/color-mode', '@nuxt/eslint'],
ssr: false,
components: [
{ path: '~/components' },
{ path: '../node_modules/@diffspot/vue/src/components', pathPrefix: false, extensions: ['vue'] }
],
devtools: { enabled: true },
app: {
head: {
title: 'diffspot — Online Text Diff Tool',
meta: [
{ name: 'description', content: 'Paste. Compare. Ship. A developer-focused online text diff comparison tool.' },
{ name: 'theme-color', content: '#0d0d0d' },
// OpenGraph
{ property: 'og:title', content: 'diffspot — Online Text Diff Tool' },
{ property: 'og:description', content: 'Paste. Compare. Ship. A developer-focused online text diff comparison tool.' },
{ property: 'og:image', content: 'https://diffspot.edufalcao.com/og.png' },
{ property: 'og:url', content: 'https://diffspot.edufalcao.com' },
{ property: 'og:type', content: 'website' },
// Twitter/X
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:title', content: 'diffspot — Online Text Diff Tool' },
{ name: 'twitter:description', content: 'Paste. Compare. Ship. A developer-focused online text diff comparison tool.' },
{ name: 'twitter:image', content: 'https://diffspot.edufalcao.com/og.png' }
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
{ rel: 'canonical', href: 'https://diffspot.edufalcao.com' }
],
script: [
{
type: 'application/ld+json',
innerHTML: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'WebApplication',
'name': 'diffspot',
'url': 'https://diffspot.edufalcao.com',
'description': 'Paste. Compare. Ship. A developer-focused online text diff comparison tool with split and unified views, word-level highlighting, and multi-format export.',
'applicationCategory': 'DeveloperApplication',
'operatingSystem': 'Any',
'offers': {
'@type': 'Offer',
'price': '0',
'priceCurrency': 'USD'
},
'author': {
'@type': 'Person',
'name': 'Eduardo Falcão',
'url': 'https://edufalcao.com'
}
})
}
]
}
},
css: ['~/assets/css/main.css'],
colorMode: {
classSuffix: '',
preference: 'dark',
fallback: 'dark'
},
compatibilityDate: '2024-11-01',
nitro: {
preset: 'cloudflare-pages',
modules: ['nitro-cloudflare-dev']
},
vite: {
plugins: [tailwindcss()]
},
eslint: {
config: {
stylistic: {
semi: true,
commaDangle: 'never',
braceStyle: '1tbs'
}
}
},
googleFonts: {
families: {
'Space Grotesk': [400, 500, 600, 700],
'DM Sans': [400, 500, 600, 700],
'JetBrains Mono': [400, 500, 600, 700]
},
display: 'swap'
}
});