-
|
Hi there, In the guides it is expected a res to be returned, which is, basically, a modified NextResponse.next, but at the same time I'm making use of some NextResponse.rewrite to point to the right directories, and I don't know how to combine it with the res mentioned above. Could you please guide me in the right direction? It will be appreciated! My current code looks like this: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Finally managed to return next.config.jsand changing the following code inside the middleware.tsError fetching data from a NextJS 13 Server ComponentHowever, when trying to fetch data from the server, it fails. This is the code I'm executing: and the error: Needless to say, the What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
|
for NextResponse.rewrite is necesary remove "underscore" from folder and de code => "_sites" ===> "sites" , for me to solve my multiplication tenan problems and rewrite route folder |
Beta Was this translation helpful? Give feedback.
-
|
Fixed in this issue. |
Beta Was this translation helpful? Give feedback.

Fixed in this issue.