Skip to content

Commit 1883e8a

Browse files
committed
fix(nextjs): Use shared subpath import in server related utils to avoid bundling unused helpers
1 parent e1c8ea0 commit 1883e8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nextjs/src/utils/serverRedirectWithAuth.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Middleware runs on the server side, before clerk-js is loaded, that's why we need Cookies.
22
import type { AuthenticateRequestOptions, ClerkRequest } from '@clerk/backend/internal';
33
import { constants } from '@clerk/backend/internal';
4-
import { DEV_BROWSER_JWT_KEY, isDevelopmentFromSecretKey, setDevBrowserJWTInURL } from '@clerk/shared';
4+
import { DEV_BROWSER_JWT_KEY, setDevBrowserJWTInURL } from '@clerk/shared/devBrowser';
5+
import { isDevelopmentFromSecretKey } from '@clerk/shared/keys';
56
import { NextResponse } from 'next/server';
67

78
import { SECRET_KEY } from '../server/constants';

0 commit comments

Comments
 (0)