Skip to content
Discussion options

You must be logged in to vote

Change your function signature to:

export async function GET(request: Request, { params }: { params: Promise<{ endpoint: string }> }) {
    const { endpoint } = await params;

Next 15 had breaking changes: https://nextjs.org/docs/app/guides/upgrading/version-15#route-handlers

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CalmNerd
Comment options

Answer selected by CalmNerd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants