From 95e9065f50a38d913a42545d1dbea6d644f4d601 Mon Sep 17 00:00:00 2001 From: Alejandro Akbal <37181533+AlejandroAkbal@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:02:10 +0100 Subject: [PATCH] perf: use swr for routes --- nuxt.config.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index ea81f0db..d2eac4df 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -10,11 +10,9 @@ export default defineNuxtConfig({ */ routeRules: { // TODO: prerender / but not if there are query params - '/': {}, + '/': { swr: true }, - '/posts/**': { - swr: 60 * 5 - }, + '/posts/**': { swr: true }, // Static pages are prerendered '/other-sites': { prerender: true }, @@ -274,6 +272,10 @@ export default defineNuxtConfig({ } }, + schemaOrg: { + default: false + }, + /** @type {import('@nuxtjs/sitemap').ModuleOptions} */ sitemap: { autoLastmod: true,