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 037c97c commit 6e78de8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/src/server/node-environment.ts
Original file line number Diff line number Diff line change
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 6e78de8

Please sign in to comment.