From 6e15e30ab1dfe4af30e1e34b432f05407cb31a39 Mon Sep 17 00:00:00 2001 From: Kristof Vandenbroucke Date: Tue, 28 Nov 2023 20:04:12 +0100 Subject: [PATCH] Fix for hardcoded routes needed to prerender --- nuxt.config.ts | 1 + pages/geudenstraat/[...slug].vue | 7 ++----- pages/sloefke/[...slug].vue | 5 ++--- pages/sloefke/index.vue | 1 - 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 7086703..fc3528c 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -36,6 +36,7 @@ export default defineNuxtConfig({ // define preset for nitro and which backend to serve the project preset: "node-server", prerender: { + crawlLinks: true, ignore: ['/api'] } }, diff --git a/pages/geudenstraat/[...slug].vue b/pages/geudenstraat/[...slug].vue index 4592378..893b844 100644 --- a/pages/geudenstraat/[...slug].vue +++ b/pages/geudenstraat/[...slug].vue @@ -19,15 +19,12 @@