Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _config/nodeAPI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"next": "^14.1.4",
"next": "^15.5.10",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next.js 15 async params break route handlers

High Severity

Upgrading to Next.js 15 introduces a breaking change where params in route handlers is now a Promise. The existing route handlers access context.params.chainID, context.params.filename, and context.params.tokenAddress synchronously, but since params is now a Promise, these property accesses return undefined. The fallback values (|| 1, || '') then take over, causing all API requests to use incorrect default values (chainID 1, empty strings) instead of actual route parameters. This will silently break the API endpoints.

Fix in Cursor Fix in Web

"react": "18.2.0",
"react-dom": "^18.2.0",
"styled-jsx": "^5.1.2"
Expand Down
Loading