From e1e6c848c3e1efc541847d25ff35981d1e843d42 Mon Sep 17 00:00:00 2001 From: Daniele Ciminieri Date: Wed, 18 Sep 2024 15:50:36 +0200 Subject: [PATCH] try to prerender dynamic routes --- src/routes/api/corsi/[slug]/+server.js | 2 +- src/routes/api/gruppi/[slug]/+server.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/api/corsi/[slug]/+server.js b/src/routes/api/corsi/[slug]/+server.js index 93f57ea..774fa8e 100644 --- a/src/routes/api/corsi/[slug]/+server.js +++ b/src/routes/api/corsi/[slug]/+server.js @@ -1,7 +1,7 @@ import { client } from '$lib/sanityClient'; import { getCorsoBySlug } from '$lib/sanityQueries'; import { json, error } from '@sveltejs/kit'; -export const prerender = 'auto'; +export const prerender = true; export async function GET({ params }) { const { slug } = params; diff --git a/src/routes/api/gruppi/[slug]/+server.js b/src/routes/api/gruppi/[slug]/+server.js index b0a707d..6e56800 100644 --- a/src/routes/api/gruppi/[slug]/+server.js +++ b/src/routes/api/gruppi/[slug]/+server.js @@ -1,7 +1,7 @@ import { error, json } from '@sveltejs/kit'; import { client } from '$lib/sanityClient'; import { getGruppi } from '$lib/sanityQueries'; -export const prerender = 'auto'; +export const prerender = true; export async function GET({ params }) { const { slug } = params;