Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 5, 2023
1 parent cee8df5 commit 97190b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/src/server/node-environment.ts
Expand Up @@ -4,9 +4,9 @@
// expose AsyncLocalStorage on global for react usage if it isn't already provided by the environment
if (typeof (globalThis as any).AsyncLocalStorage !== 'function') {
const { AsyncLocalStorage } = require('async_hooks')
; (globalThis as any).AsyncLocalStorage = AsyncLocalStorage
;(globalThis as any).AsyncLocalStorage = AsyncLocalStorage
}

if (typeof (globalThis as any).WebSocket !== 'function') {
; (globalThis as any).WebSocket = require('next/dist/compiled/ws').WebSocket
}
;(globalThis as any).WebSocket = require('next/dist/compiled/ws').WebSocket
}

0 comments on commit 97190b5

Please sign in to comment.