v0.13.0
🚀 New Feature Alert: Lazy Router 🌟
Level up your serverless architecture with Lazy Routers now available in oRPC!
Defer loading router modules until needed, improving startup times and optimizing resource usage—perfect for large applications.
import { os } from '@orpc/server'
const router = os.router({
lazy: os.lazy(() => import('examples/server'))
})
// Use the lazy-loaded router as if it were a regular one
const output = await router.lazy.getting.name({ name: 'unnoq' })
Learn how it works and get started 👉 Read more here