massive perf improvements
on the store page, brings LCP down to only 5.6s from 11s. total lighthouse score is now 78
This commit is contained in:
+30
-4
@@ -9,10 +9,12 @@ export default defineNuxtConfig({
|
||||
devtools: { enabled: false },
|
||||
css: ["~/assets/tailwindcss.css", "~/assets/core.scss"],
|
||||
|
||||
experimental: {
|
||||
buildCache: true,
|
||||
},
|
||||
|
||||
vite: {
|
||||
plugins: [
|
||||
tailwindcss()
|
||||
]
|
||||
plugins: [tailwindcss()],
|
||||
},
|
||||
|
||||
app: {
|
||||
@@ -21,7 +23,16 @@ export default defineNuxtConfig({
|
||||
},
|
||||
},
|
||||
|
||||
routeRules: {
|
||||
"/signin": { prerender: true },
|
||||
"/signout": { prerender: true },
|
||||
|
||||
"/api/**": { cors: true },
|
||||
},
|
||||
|
||||
nitro: {
|
||||
minify: true,
|
||||
|
||||
experimental: {
|
||||
websocket: true,
|
||||
tasks: true,
|
||||
@@ -30,6 +41,20 @@ export default defineNuxtConfig({
|
||||
scheduledTasks: {
|
||||
"0 * * * *": ["cleanup:invitations"],
|
||||
},
|
||||
|
||||
compressPublicAssets: true,
|
||||
publicAssets: [
|
||||
{
|
||||
baseURL: "wallpapers",
|
||||
dir: "public/wallpapers",
|
||||
maxAge: 31536000, // 1 year
|
||||
},
|
||||
{
|
||||
baseURL: "fonts",
|
||||
dir: "public/fonts",
|
||||
maxAge: 31536000, // 1 year
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
extends: ["./drop-base"],
|
||||
@@ -39,6 +64,7 @@ export default defineNuxtConfig({
|
||||
"vue3-carousel-nuxt",
|
||||
"nuxt-security",
|
||||
"@nuxt/image",
|
||||
"@nuxt/fonts",
|
||||
],
|
||||
|
||||
carousel: {
|
||||
@@ -59,4 +85,4 @@ export default defineNuxtConfig({
|
||||
strictTransportSecurity: false,
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user