perf: Performance work, add PWA

This commit is contained in:
Jesse Wierzbinski 2024-05-11 21:30:02 -10:00
parent 7d07e639c8
commit 6e8f4ae8e1
No known key found for this signature in database
19 changed files with 76 additions and 45 deletions

View file

@ -10,7 +10,19 @@ export default defineNuxtConfig({
//"nuxt-shiki",
"@vee-validate/nuxt",
"nuxt-security",
"@vite-pwa/nuxt",
],
pwa: {
manifest: {
name: "Lysand",
short_name: "Lysand",
description: "Frontend for the Lysand social network",
theme_color: "#f9a8d4",
display: "standalone",
lang: "en",
categories: ["social", "development"],
},
},
security: {
headers: {
// Nuxt DevTools
@ -41,6 +53,11 @@ export default defineNuxtConfig({
href: "/favicon.png",
type: "image/png",
},
{
rel: "apple-touch-icon",
href: "/favicon.png",
type: "image/png",
},
],
htmlAttrs: { lang: "en-us" },
},