Skip to content

Commit

Permalink
chore: change deprecation warning for getPayloadHMR to warning (#9700)
Browse files Browse the repository at this point in the history
Changes the deprecation warning to be actually a warning
  • Loading branch information
paulpopus authored Dec 3, 2024
1 parent 92a01c2 commit 643c92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/utilities/getPayloadHMR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const getPayloadHMR = async (
): Promise<Payload> => {
const result = await getPayload(options)

result.logger.error(
result.logger.warn(
"Deprecation warning: getPayloadHMR is no longer preferred. You can now use `import { getPayload } from 'payload' in all contexts.",
)

Expand Down

0 comments on commit 643c92d

Please sign in to comment.