fix: 🐛 Fix pre-rendering of articles

This commit is contained in:
Jesse Wierzbinski 2025-01-17 18:04:07 +01:00
parent 93864b7264
commit f85bc75145
No known key found for this signature in database

View file

@ -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"],
},