Skip to content

Commit 121f9b6

Browse files
Update api-routes.mdx for new @solidjs/start package (#990)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 88422ad commit 121f9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/solid-start/building-your-application/api-routes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export const client = createTRPCProxyClient<AppRouter>({
201201
Finally, you can use the `fetch` adapter to write an API route that acts as the tRPC server.
202202

203203
```tsx title="routes/api/trpc/[trpc].ts"
204-
import { type APIEvent } from "solid-start/api";
204+
import { type APIEvent } from "@solidjs/start/server";
205205
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
206206
import { appRouter } from "~/lib/router";
207207

0 commit comments

Comments
 (0)