Skip to content

Commit

Permalink
add prerender=true
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Ciminieri committed Sep 18, 2024
1 parent aa773cc commit adbbda9
Showing 1 changed file with 1 addition and 1 deletion.
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 = true;
export async function GET({ params }) {
const { slug } = params;

Expand Down

0 comments on commit adbbda9

Please sign in to comment.