From ea53ffa79d5ae6d17a2685e14085c498c4b21732 Mon Sep 17 00:00:00 2001 From: panteliselef Date: Tue, 9 Apr 2024 21:28:18 +0300 Subject: [PATCH] chore(*): Update import paths for app-router (#3155) --- .changeset/early-geese-kiss.md | 2 ++ playground/app-router/src/app/action/page.tsx | 2 +- playground/app-router/src/middleware.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .changeset/early-geese-kiss.md diff --git a/.changeset/early-geese-kiss.md b/.changeset/early-geese-kiss.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/early-geese-kiss.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/playground/app-router/src/app/action/page.tsx b/playground/app-router/src/app/action/page.tsx index 4871e7fbe4..a143b30183 100644 --- a/playground/app-router/src/app/action/page.tsx +++ b/playground/app-router/src/app/action/page.tsx @@ -1,4 +1,4 @@ -import { auth, currentUser } from '@clerk/nextjs'; +import { auth, currentUser } from '@clerk/nextjs/server'; export default function AddToCart() { async function addItem(data: any) { diff --git a/playground/app-router/src/middleware.ts b/playground/app-router/src/middleware.ts index 6010f58b82..c2fcb31098 100644 --- a/playground/app-router/src/middleware.ts +++ b/playground/app-router/src/middleware.ts @@ -1,4 +1,4 @@ -import { authMiddleware } from '@clerk/nextjs'; +import { authMiddleware } from '@clerk/nextjs/server'; import { NextMiddleware, NextResponse } from 'next/server'; const clerkMiddleware = authMiddleware()