-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #37 by upgrading Next.js to 15.x #44
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments for reviewers
@@ -1,7 +1,8 @@ | |||
import { openai } from "@/app/openai"; | |||
|
|||
// Send a new message to a thread | |||
export async function POST(request, { params: { threadId } }) { | |||
export async function POST(request, { params }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the code to resolve the error with Next.js 15
@@ -4,7 +4,8 @@ import { openai } from "@/app/openai"; | |||
export const runtime = "nodejs"; | |||
|
|||
// Send a new message to a thread | |||
export async function POST(request, { params: { threadId } }) { | |||
export async function POST(request, { params }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
@@ -9,16 +9,16 @@ | |||
"lint": "next lint" | |||
}, | |||
"dependencies": { | |||
"next": "14.1.4", | |||
"next": "^15.1.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the team wants to lock the version to a specific one, I am happy to change this part (or you can edit before merging if it's easier for the team)
This pull request resolves #37