From 0771fc9322204f7a4bf47221f1093a4f41446a3c Mon Sep 17 00:00:00 2001 From: OyewoleOyedeji <57059138+OyewoleOyedeji@users.noreply.github.com> Date: Thu, 28 Dec 2023 17:13:31 +0100 Subject: [PATCH] refactor: Enabled ISR (hybrid-rendering) --- docs/nuxt.config.ts | 8 +++----- docs/package.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index 3b17873..9f5913e 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -22,11 +22,6 @@ export default defineNuxtConfig({ "@nuxtjs/google-fonts", "@nuxtjs/tailwindcss", ], - nitro: { - prerender: { - crawlLinks: true, - }, - }, phosphor: { options: { components: { @@ -34,6 +29,9 @@ export default defineNuxtConfig({ }, }, }, + routeRules: { + "/**": { isr: true }, + }, typescript: { shim: false, }, diff --git a/docs/package.json b/docs/package.json index 8c6a4fd..fde3fc5 100644 --- a/docs/package.json +++ b/docs/package.json @@ -3,8 +3,8 @@ "private": true, "type": "module", "scripts": { + "build": "nuxt build", "dev": "nuxt dev", - "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" }, diff --git a/package.json b/package.json index 19926c4..1febe61 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ ], "scripts": { "lint": "eslint . --fix", + "docs:build": "pnpm --filter docs build", "docs:dev": "pnpm --filter docs dev", - "docs:generate": "pnpm --filter docs generate", "playground:build": "pnpm --filter playground build", "playground:dev": "pnpm --filter playground dev", "playground:generate": "pnpm --filter playground generate",