This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
108 lines (108 loc) · 1.94 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"@nuxtjs/robots",
"@nuxt/image-edge",
"@vite-pwa/nuxt",
"@unocss/nuxt",
"@nuxtjs/eslint-module",
"nuxt-headlessui",
"nuxt-icon",
"@pinia/nuxt",
"@pinia-plugin-persistedstate/nuxt",
"@vueuse/nuxt",
],
pinia: {
autoImports: ["defineStore"],
},
spaLoadingTemplate: false,
ssr: false,
app: {
keepalive: true,
head: {
link: [
{
rel: "icon",
href: "/favicon.png",
type: "image/png",
},
],
title: "Fedibase",
htmlAttrs: { lang: "en-us" },
},
},
vite: {
resolve: {
alias: {
querystring: "querystring-es3",
},
},
define: {
"process.env": {},
},
},
nitro: {
compressPublicAssets: true,
routeRules: {
"/_nuxt/**": {
headers: {
"cache-control": `public,max-age=${
60 * 60 * 24 * 365
},s-maxage=${60 * 60 * 24 * 365}`,
},
},
},
},
image: {
ipx: {
maxAge: 60 * 60 * 24 * 365,
},
},
pwa: {
registerType: "autoUpdate",
manifest: {
name: "Fedibase",
short_name: "Fedibase",
theme_color: "#f38121",
background_color: "#181a1b",
display: "standalone",
orientation: "portrait",
scope: "/",
start_url: "/",
icons: [
{
src: "images/icons/logo.svg",
sizes: "48x48 72x72 96x96 128x128 256x256 512x512",
type: "image/svg+xml",
purpose: "any",
},
],
screenshots: [
{
src: "images/screenshots/dark1.webp",
sizes: "1170x2532",
type: "image/webp",
platform: "narrow",
},
{
src: "images/screenshots/dark2.webp",
sizes: "1170x2532",
type: "image/webp",
platform: "narrow",
},
{
src: "images/screenshots/light1.webp",
sizes: "1170x2532",
type: "image/webp",
platform: "narrow",
},
{
src: "images/screenshots/light2.webp",
sizes: "1170x2532",
type: "image/webp",
platform: "narrow",
},
],
},
},
});