Skip to content

Commit 4886906

Browse files
committed
fix: apiClient must be imported from lib/client
1 parent f9b9a41 commit 4886906

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default route<TestApiSchema>("TestApiSchema", async (req) => {
7575
Create `src/apis/client.ts` with the following content
7676

7777
```ts
78-
import { createApiClient } from "@ddadaal/next-typed-api-routes-runtime";
78+
import { createApiClient } from "@ddadaal/next-typed-api-routes-runtime/lib/client";
7979

8080
// Pass custom client config here
8181
export const apiClient = createApiClient({});

example/src/apis/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createApiClient } from "@ddadaal/next-typed-api-routes-runtime";
1+
import { createApiClient } from "@ddadaal/next-typed-api-routes-runtime/lib/client";
22

33
export const apiClient = createApiClient({
44
baseUrl: typeof window === "undefined" ? `http://localhost:${process.env.PORT || 3000}` : "",

0 commit comments

Comments
 (0)