From f85bc7514520d9760691dc406542beed28c4129f Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Fri, 17 Jan 2025 18:04:07 +0100 Subject: [PATCH] fix: :bug: Fix pre-rendering of articles --- nuxt.config.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 1283d59..39adf6c 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,7 +1,6 @@ import { readdirSync } from "node:fs"; import { join } from "node:path"; import { defineNuxtConfig } from "nuxt/config"; -import { org } from "./types/schemas.ts"; /* * Reads the content directory and returns an array of all the files in the directory and subdirectories. @@ -111,6 +110,14 @@ export default defineNuxtConfig({ }, }, }, + routeRules: Object.fromEntries( + getRouteRenderingPaths().map((path) => [ + path, + { + prerender: true, + }, + ]), + ), image: { domains: ["images.pexels.com"], },