Skip to content

Commit b214c48

Browse files
committed
fix: add prerender flag to api endpoint
1 parent 2d8a073 commit b214c48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routes/api/+server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { getMetadata } from '$lib/data/metadata'; // Import your getMetadata function
22
import { json } from '@sveltejs/kit';
33

4+
export const prerender = true;
5+
46
export const GET = async () => {
57
try {
68
// Get metadata using your function

0 commit comments

Comments
 (0)