Fix issue when using SDK in non-node environments by scoping the stream import with node:
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@trigger.dev/core": patch
|
||||
---
|
||||
|
||||
Fix issue when using SDK in non-node environments by scoping the stream import with node:
|
||||
@@ -4,7 +4,7 @@ import { APIConnectionError, APIError } from "./apiErrors";
|
||||
import { RetryOptions } from "./schemas";
|
||||
import { calculateNextRetryDelay } from "./utils/retries";
|
||||
import { FormDataEncoder } from "form-data-encoder";
|
||||
import { Readable } from "stream";
|
||||
import { Readable } from "node:stream";
|
||||
|
||||
export const defaultRetryOptions = {
|
||||
maxAttempts: 3,
|
||||
|
||||
@@ -16,4 +16,5 @@ export default defineConfig({
|
||||
"./src/v3/prod/index.ts",
|
||||
"./src/v3/workers/index.ts",
|
||||
],
|
||||
external: ["node:stream"],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user