Skip to content

Commit

Permalink
perf: use swr for routes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Apr 1, 2024
1 parent 437d246 commit 95e9065
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -274,6 +272,10 @@ export default defineNuxtConfig({
}
},

schemaOrg: {
default: false
},

/** @type {import('@nuxtjs/sitemap').ModuleOptions} */
sitemap: {
autoLastmod: true,
Expand Down

0 comments on commit 95e9065

Please sign in to comment.