Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seratch
Copy link

@seratch seratch commented Feb 15, 2025

This pull request resolves #37

Copy link
Author

@seratch seratch left a 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 }) {
Copy link
Author

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 }) {
Copy link
Author

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",
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Security Alert: Severity High, Next.js Vulnerabilities in Dependencies
1 participant