Next.js Discord

Discord Forum

NextJS 13.4 Access Request Object

Unanswered
Blue whiting posted this in #help-forum
Open in Discord
Blue whitingOP
Hi guys,

I’ve noticed someone has posted something similar on the vercel GitHub but there doesn’t seem to be a solution?

https://github.com/vercel/next.js/discussions/42732

My use case is I’m looking to retrieve the data from the request for non JavaScript solutions such as errors coming back from the API and so on. If there’s a better solution to this I would love to hear it. I thought sever actions potentially would help but as it’s in Alpha it’s not an option.

Thanks!

1 Reply

Blue whitingOP
Also on Reddit

Just wanted to make sure I’m not missing something

https://www.reddit.com/r/nextjs/comments/yef3xc/nextjs_13_how_do_you_access_the_request_object/