Skip to content

Commit

Permalink
perf: swr for / route
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Apr 1, 2024
1 parent 437d246 commit 7d2fa64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineNuxtConfig({
*/
routeRules: {
// TODO: prerender / but not if there are query params
'/': {},
'/': { swr: true },

'/posts/**': {
swr: 60 * 5
Expand Down Expand Up @@ -274,6 +274,10 @@ export default defineNuxtConfig({
}
},

schemaOrg: {
default: false
},

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

0 comments on commit 7d2fa64

Please sign in to comment.