mirror of
https://github.com/versia-pub/blog.git
synced 2025-12-06 08:48:18 +01:00
fix: 🐛 Fix pre-rendering of articles
This commit is contained in:
parent
93864b7264
commit
f85bc75145
|
|
@ -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"],
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue