How to generate locations in server functions? - TanStack