Skip to content

Commit

Permalink
Import server-only on auth helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraBeatris committed Jul 18, 2024
1 parent 4d2ed3c commit 790eea2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nextjs/src/app-router/server/auth.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'server-only';

import type { AuthObject, RedirectFun } from '@clerk/backend/internal';
import { constants, createClerkRequest, createRedirect } from '@clerk/backend/internal';
import { notFound, redirect } from 'next/navigation';
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs/src/app-router/server/currentUser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'server-only';

import type { User } from '@clerk/backend';

import { clerkClient } from '../../server/clerkClient';
Expand Down

0 comments on commit 790eea2

Please sign in to comment.