Access request object in Page server component
Unanswered
Russian Blue posted this in #help-forum
Russian BlueOP
I would like to get access to the NextRequest object in
This is in order to obtain the client's UA and IP
How can I get this working ?
app/page.tsx This is in order to obtain the client's UA and IP
How can I get this working ?
6 Replies
Russian BlueOP
I think i'll just use a middleware in that case
@Russian Blue I think i'll just use a middleware in that case
yea, use a route handler, middleware, ...
@B33fb0n3 yea, use a route handler, middleware, ...
Russian BlueOP
route handler is /api right ?
yes
lmk if you need futher help