trpc "extends" nextjs api routes and works just like a simple REST server in this aspect. if you don't run the nextjs app, no server will be running, so the expo client wont have anything to connect to. ideally in production your website wont go offline, otherwise the api will not work.