Skip to content

Commit f5bdb44

Browse files
committed
fix casing
1 parent 56ce0fc commit f5bdb44

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/start/src/internal.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ declare module "h3" {
1010
import type { Rollup } from "vite";
1111
declare global {
1212
var START_CLIENT_BUNDLE: Rollup.OutputBundle;
13-
var canSendFastNodeStreams: boolean | undefined;
13+
var CAN_SEND_FAST_NODE_STREAMS: boolean | undefined;
1414
var USING_SOLID_START_DEV_SERVER: boolean | undefined;
1515
}

packages/start/src/server/handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ try {
2424

2525
const original = proto.listen;
2626
proto.listen = function (...args: any[]) {
27-
globalThis.canSendFastNodeStreams = true;
27+
globalThis.CAN_SEND_FAST_NODE_STREAMS = true;
2828
return original.apply(this, args);
2929
};
3030

@@ -137,7 +137,7 @@ export function createBaseHandler(
137137

138138
// using TransformStream in dev can cause solid-start-dev-server to crash
139139
// when stream is cancelled
140-
if (globalThis.canSendFastNodeStreams) return stream;
140+
if (globalThis.CAN_SEND_FAST_NODE_STREAMS) return stream;
141141

142142
// returning stream directly breaks cloudflare workers
143143
const { writable, readable } = new TransformStream();

0 commit comments

Comments
 (0)