TanStackT
TanStack9mo ago
4 replies
endless-jade

Accessing request object in the Route.loader

I would like to get access to request headers in the loader to get the IP address (to display that the service is not available in certain countries).

What is the proper way of getting access to the request object / headers in the loader?

I have tried adding getHeader but that causes a build error.
"Readable" is not exported by "__vite-browser-external",
Was this page helpful?