Buckets:
| // This file should be imported before any others. It sets up the environment | |
| // for later imports to work properly. | |
| // 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') as typeof import('async_hooks') | |
| ;(globalThis as any).AsyncLocalStorage = AsyncLocalStorage | |
| } | |
| if (typeof (globalThis as any).WebSocket !== 'function') { | |
| Object.defineProperty(globalThis, 'WebSocket', { | |
| configurable: true, | |
| get() { | |
| return ( | |
| require('next/dist/compiled/ws') as typeof import('next/dist/compiled/ws') | |
| ).WebSocket | |
| }, | |
| set(value) { | |
| Object.defineProperty(globalThis, 'WebSocket', { | |
| configurable: true, | |
| writable: true, | |
| value, | |
| }) | |
| }, | |
| }) | |
| } | |
Xet Storage Details
- Size:
- 873 Bytes
- Xet hash:
- 98de4e40f9ef24150fe2ef36afc3e976b0b06e2568716e06292b592c8ca66403
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.