From cf72727fc7eee02f53e2db09248f95dd10924c29 Mon Sep 17 00:00:00 2001 From: Alejandro Akbal <37181533+AlejandroAkbal@users.noreply.github.com> Date: Tue, 2 Apr 2024 18:57:22 +0100 Subject: [PATCH] fix: prerender page --- nuxt.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 9854e511..0310cae7 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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 },