Skip to content

Commit

Permalink
fix(nextjs): Import helper from subpath to avoid static analysis warn…
Browse files Browse the repository at this point in the history
…ings

Otherwise, next prod builds will report the following issue:

A Node.js API is used (MessageEvent at line: 28) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

Import trace for requested module:
./node_modules/@clerk/shared/dist/chunk-RSOCGYTF.mjs
./node_modules/@clerk/shared/dist/index.mjs
  • Loading branch information
nikosdouvlis committed Nov 2, 2024
1 parent 52dd05f commit ecdbf2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/src/server/createGetAuth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { AuthObject } from '@clerk/backend';
import { constants } from '@clerk/backend/internal';
import { decodeJwt } from '@clerk/backend/jwt';
import { isTruthy } from '@clerk/shared';
import { isTruthy } from '@clerk/shared/underscore';

import { withLogger } from '../utils/debugLogger';
import { getAuthDataFromRequest } from './data/getAuthDataFromRequest';
Expand Down

0 comments on commit ecdbf2e

Please sign in to comment.