-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
121 lines (120 loc) · 2.68 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
const APP_NAME = '#あの日のツイートを表示するやつ'
const APP_NAME_SHORT = 'あの日のツイート'
const APP_DESCRIPTION = '指定した条件にマッチするツイートの検索結果、Twilogなどを開くためのウェブアプリ'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: APP_NAME,
meta: [
{
name: 'viewport',
content: 'width=device-width, initial-scale=1, user-scalable=no'
},
{
name: 'description',
content: APP_DESCRIPTION
},
{
property: 'og:type',
content: 'website'
},
{
property: 'og:title',
content: APP_NAME
},
{
property: 'og:description',
content: APP_DESCRIPTION
},
{
property: 'og:url',
content: 'https://anohi-no-tweet.munieru.app/'
},
{
property: 'og:image',
content: 'https://anohi-no-tweet.munieru.app/icon.png'
},
{
property: 'og:image:width',
content: '1024'
},
{
property: 'og:image:height',
content: '1024'
},
{
name: 'twitter:card',
content: 'summary'
},
{
name: 'twitter:site',
content: '@munieru_jp'
}
],
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: '/favicon.ico'
},
{
rel: 'icon',
type: 'image/png',
href: '/android-chrome-192x192.png',
sizes: '192x192'
},
{
rel: 'apple-touch-icon',
href: '/apple-touch-icon.png',
sizes: '180x180'
}
]
}
},
css: [
'element-plus/theme-chalk/dark/css-vars.css',
'~/assets/main.scss'
],
modules: [
'@nuxtjs/eslint-module',
'@vite-pwa/nuxt',
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'@element-plus/nuxt',
'nuxt-icon'
],
typescript: {
strict: true
},
vite: {
define: {
'process.env.DEBUG': false
}
},
pwa: {
manifest: {
name: APP_NAME,
short_name: APP_NAME_SHORT,
description: APP_DESCRIPTION,
theme_color: '#1DA1F2',
background_color: '#ffffff',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png'
}
],
display: 'standalone'
}
},
piniaPersistedstate: {
storage: 'localStorage'
}
})