[PR #5198] [MERGED] fix: import node:async_hooks directly #14090

Closed
opened 2026-04-13 09:18:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5198
Author: @himself65
Created: 10/9/2025
Status: Merged
Merged: 10/10/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/10/09/als


📝 Commits (1)

  • 93ca587 fix: import node:async_hooks directly

📊 Changes

1 file changed (+1 additions, -9 deletions)

View changed files

📝 packages/core/src/async_hooks/index.ts (+1 -9)

📄 Description

This will fix nextjs build issue


Summary by cubic

Fix Next.js build errors by using a static import specifier for node:async_hooks in the AsyncLocalStorage dynamic import, replacing the variable-based path. Behavior stays the same while allowing bundlers to statically analyze the import.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5198 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/9/2025 **Status:** ✅ Merged **Merged:** 10/10/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/10/09/als` --- ### 📝 Commits (1) - [`93ca587`](https://github.com/better-auth/better-auth/commit/93ca587e23c27c39e51646971b444394d9ca3648) fix: import `node:async_hooks` directly ### 📊 Changes **1 file changed** (+1 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/async_hooks/index.ts` (+1 -9) </details> ### 📄 Description This will fix nextjs build issue <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fix Next.js build errors by using a static import specifier for node:async_hooks in the AsyncLocalStorage dynamic import, replacing the variable-based path. Behavior stays the same while allowing bundlers to statically analyze the import. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 09:18:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14090