-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
116 lines (100 loc) · 2.8 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
/**
* @file Nuxt config
* @see {@link https://nuxt.com/docs/api/configuration/nuxt-config}
*/
import { META } from './composables/constants'
export default defineNuxtConfig({
modules: ['@vueuse/nuxt', '@unocss/nuxt', '@nuxt/content', '@vite-pwa/nuxt', '@nuxt/image'],
css: ['@unocss/reset/tailwind.css', '~/styles/vars.css', '~/styles/index.css'],
imports: {
dirs: ['./composables', './composables/state', './utils'],
},
components: {
dirs: ['./components/home'],
},
app: {
head: {
title: META.appName,
htmlAttrs: {
lang: 'en',
},
meta: [
{ name: 'keywords', content: META.appName },
{ name: 'description', content: META.appDescription },
{ name: 'twitter:title', content: META.appName },
{ name: 'twitter:domain', content: META.appUrl },
{ name: 'twitter:creator', content: '@ntnyq' },
{ name: 'twitter:url', content: META.appUrl },
{ name: 'twitter:image', content: META.appImage },
{ name: 'twitter:description', content: META.appDescription },
{ property: 'og:title', content: META.appName },
{ property: 'og:type', content: 'website' },
{ property: 'og:url', content: META.appUrl },
{ property: 'og:image', content: META.appImage },
{ property: 'og:description', content: META.appDescription },
],
viewport: 'width=device-width, initial-scale=1, viewport-fit=cover',
},
},
pwa: {
registerType: 'autoUpdate',
manifest: {
name: META.appName,
short_name: META.appName,
description: META.appDescription,
background_color: '#ffffff',
theme_color: '#000000',
orientation: 'landscape-primary',
icons: [
{
src: '/icons/icon-196x196.png',
sizes: '196x196',
type: 'image/png',
},
{
src: '/icons/icon-196x196.png',
sizes: '196x196',
type: 'image/png',
},
{
src: '/icons/icon-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable',
},
],
},
workbox: {
maximumFileSizeToCacheInBytes: 1024 * 1024 * 5,
globPatterns: ['**/*.{js,css,html,png,jpg,jpeg,svg,ico,json,txt,ttf,woff,woff2}'],
runtimeCaching: [],
},
},
future: {
compatibilityVersion: 4,
},
experimental: {
// should be disabled when `ssr: false`
payloadExtraction: false,
},
/**
* @see {@link https://content.nuxt.com/get-started/configuration}
*/
content: {
highlight: {
theme: {
default: 'vitesse-light',
dark: 'vitesse-dark',
},
},
},
devtools: {
enabled: true,
},
// Disable SSR when building
ssr: false,
plugins: [],
vite: {},
vue: {},
compatibilityDate: '2024-10-24',
})