-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
57 lines (56 loc) · 1.6 KB
/
nuxt.config.ts
File metadata and controls
57 lines (56 loc) · 1.6 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
const NAME = 'Horu'
const DESCRIPTION = 'Horu\'s personal website'
export default defineNuxtConfig({
typescript: { strict: true },
css: ['@fontsource-variable/inter'],
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
title: NAME,
htmlAttrs: { lang: 'en' },
meta: [
{ name: 'apple-mobile-web-app-title', content: NAME },
{ name: 'application-name', content: NAME },
{ name: 'description', content: DESCRIPTION },
{ name: 'twitter:title', content: NAME },
{ name: 'twitter:description', content: DESCRIPTION },
{ name: 'twitter:card', content: 'summary' },
{ property: 'og:title', content: NAME },
{ property: 'og:description', content: DESCRIPTION },
{ property: 'og:type', content: 'website' },
],
link: [{ rel: 'manifest', href: '/manifest.webmanifest' }],
},
},
ssr: false,
modules: [
'@nuxt/content',
'@nuxtjs/color-mode',
'@unocss/nuxt',
'@nuxt/eslint',
'@vite-pwa/nuxt',
],
devtools: { enabled: true },
eslint: { config: { standalone: false } },
content: { experimental: { sqliteConnector: 'native' } },
unocss: {
preflight: true,
components: false,
},
pwa: {
registerType: 'autoUpdate',
workbox: {
navigateFallback: '/',
globPatterns: ['**/*.{js,css,html,woff2}'],
},
manifest: {
background_color: '#FFF',
theme_color: '#000',
display: 'minimal-ui',
lang: 'en',
orientation: 'portrait-primary',
shortcuts: [{ name: 'Blogs', url: '/blogs' }],
},
},
})