Skip to content

Commit

Permalink
fix: only cache posts for 5 minutes
Browse files Browse the repository at this point in the history
Otherwise it runs out of memory
  • Loading branch information
AlejandroAkbal committed Apr 2, 2024
1 parent 570fe9b commit a4b58ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export default defineNuxtConfig({
// TODO: prerender / but not if there are query params
'/': { swr: true },

'/posts/**': { swr: true },
// 5 minutes
'/posts/**': { swr: 60 * 5 },

// Static pages are prerendered
'/other-sites': { prerender: true },
Expand Down

0 comments on commit a4b58ba

Please sign in to comment.