Skip to content

Commit

Permalink
Fix broken route response
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorsharp committed Apr 15, 2024
1 parent de5d1a0 commit 5dca852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[feedId]/feed/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const GET = async (request: Request, { params }: { params: { feedId: string } })
const moddedFeedData = applyMods(feedData, modConfig);
const feed = buildFeed(moddedFeedData, feedId, host);

return feed;
return new NextResponse(feed);
} catch (errorMessage) {
console.error(errorMessage);
return new NextResponse((errorMessage as string | undefined) ?? "Unexpected Error", {
Expand Down

0 comments on commit 5dca852

Please sign in to comment.