Skip to content

Commit

Permalink
fix: prerender page
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Apr 2, 2024
1 parent d509dbf commit cf72727
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export default defineNuxtConfig({
* @see https://nuxt.com/docs/guide/concepts/rendering#route-rules
*/
routeRules: {
// TODO: prerender / but not if there are query params
'/': { swr: true },
'/': { prerender: true },

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

0 comments on commit cf72727

Please sign in to comment.