fix: removed revalidate

This commit is contained in:
ner committed 2023-08-11 15:41:20 +03:00
1 parent dd7339b62c
commit edf74fc92c
3 files changed
+5 -12

No files matched your search

+2
View File
@@ -22,3 +22,5 @@ export async function GET(request: Request) {
return NextResponse.json([]);
}
}
export const revalidate = 0;
+3 -1
View File
@@ -30,6 +30,8 @@ export async function GET(request: Request) {
return NextResponse.json(torrents);
} catch (error) {
return NextResponse.json([]);
return NextResponse.json([{ title: JSON.stringify(error), id: JSON.stringify(error) }]);
}
}
export const revalidate = 0;