Here is an article which talks about it : https://www.oxelya.com/blog/contruire-requetes-next-js, u have to catch your params in a Promise at ur initial request and then await them
Before : params = await user.id,etc....
Now : {user, userId, etc...} = await params