oRPC Solid Start Adapter
Installation
SKILL.md
Solid Start Adapter
Solid Start is a full stack JavaScript framework for building web applications with SolidJS.
Server
// src/routes/rpc/[...rest].ts
import type { APIEvent } from '@solidjs/start/server'
import { RPCHandler } from '@orpc/server/fetch'
import { onError } from '@orpc/server'
const handler = new RPCHandler(router, {
interceptors: [onError(e => console.error(e))],
})