Rocky_Mountain_Vending/.pnpm-store/v10/files/da/1cccfd43ec75458c8bd2cc77ade943bf3a214768c33b48ccbc5d59ddd97eccac6ffb8459316c0a6a2398337ef6d11aa94cf8c643cea41fcf7c80cf9e71b4d9
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

13 lines
479 B
Text

import { PassThrough } from "stream";
import { splitStream as splitWebStream } from "./splitStream.browser";
import { isBlob, isReadableStream } from "./stream-type-check";
export async function splitStream(stream) {
if (isReadableStream(stream) || isBlob(stream)) {
return splitWebStream(stream);
}
const stream1 = new PassThrough();
const stream2 = new PassThrough();
stream.pipe(stream1);
stream.pipe(stream2);
return [stream1, stream2];
}