Skip to content

Commit

Permalink
try to prerender dynamic routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Ciminieri committed Sep 18, 2024
1 parent 9ab9491 commit e1e6c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/api/corsi/[slug]/+server.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/routes/api/gruppi/[slug]/+server.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit e1e6c84

Please sign in to comment.