Skip to content

Commit 225a4dd

Browse files
committed
fix(astro): fix async_hooks import for Cloudflare compatibility
1 parent d4d2612 commit 225a4dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/astro/src/async-local-storage.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AsyncLocalStorage } from 'async_hooks';
1+
import type { AsyncLocalStorage } from 'node:async_hooks';
22

33
const sharedAsyncLocalStorageNotAvailableError = new Error(
44
'Invariant: AsyncLocalStorage accessed in runtime where it is not available',

0 commit comments

Comments
 (0)