Skip to content

Commit 0bce401

Browse files
committed
next params are async now
1 parent 4cf1d76 commit 0bce401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/api/predictions/[id]/route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ replicate.fetch = (url, options) => {
1111
return fetch(url, { cache: "no-store", ...options });
1212
};
1313

14-
export async function GET(request, {params}) {
15-
const { id } = params;
14+
export async function GET(request, context) {
15+
const { id } = await context.params;
1616
const prediction = await replicate.predictions.get(id);
1717

1818
if (prediction?.error) {

0 commit comments

Comments
 (0)