Buckets:
| /** | |
| * Compile-time switcher for debug channel operations. | |
| * | |
| * When __NEXT_USE_NODE_STREAMS is true, uses a Node PassThrough-based channel. | |
| * Otherwise, uses web WritableStream APIs. | |
| */ | |
| export type { | |
| DebugChannelPair, | |
| DebugChannelServer, | |
| } from './debug-channel-server.web' | |
| import type { DebugChannelPair } from './debug-channel-server.web' | |
| type DebugChannelMod = { | |
| createWebDebugChannel: typeof import('./debug-channel-server.web').createWebDebugChannel | |
| createNodeDebugChannel: typeof import('./debug-channel-server.web').createNodeDebugChannel | |
| } | |
| let _m: DebugChannelMod | |
| if (process.env.__NEXT_USE_NODE_STREAMS) { | |
| _m = | |
| require('./debug-channel-server.node') as typeof import('./debug-channel-server.node') | |
| } else { | |
| _m = | |
| require('./debug-channel-server.web') as typeof import('./debug-channel-server.web') | |
| } | |
| export function createWebDebugChannel(): DebugChannelPair | undefined { | |
| if (process.env.NODE_ENV === 'production') { | |
| return undefined | |
| } | |
| return _m.createWebDebugChannel() | |
| } | |
| export function createNodeDebugChannel(): DebugChannelPair | undefined { | |
| if (process.env.NODE_ENV === 'production') { | |
| return undefined | |
| } | |
| return _m.createNodeDebugChannel() | |
| } | |
Xet Storage Details
- Size:
- 1.2 kB
- Xet hash:
- 27c24b41189301d010f4348ced173d8e5c4c1a8044192315b08b4c88f1c0b46f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.