How to run roboflow models offline in a React app?

The title. I ran Roboflow Inference Server locally on my Mac, but I’m unsure how to use the inferencejs package to do inferencing on the local inference server, more specifically in Vite.

I’ve used the deprecated (I think) Roboflowjs lib with the window.roboflow.auth etc but I’m unsure how to make them requests to the local inference server.