Skip to content

Commit 830ac6e

Browse files
logaretmclaude
andcommitted
fix(nitro): only compute default integrations when not provided
Align with Bun/Deno/Cloudflare SDKs by guarding the default integrations computation behind an undefined check instead of relying on spread order. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3a852aa commit 830ac6e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/nitro/src/sdk.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ import { getDefaultIntegrations as getDefaultNodeIntegrations, init as nodeInit
88
*/
99
export function init(options: NodeOptions | undefined = {}): NodeClient | undefined {
1010
const opts: NodeOptions = {
11-
defaultIntegrations: getDefaultIntegrations(options),
1211
...options,
1312
};
1413

14+
if (opts.defaultIntegrations === undefined) {
15+
opts.defaultIntegrations = getDefaultIntegrations(opts);
16+
}
17+
1518
applySdkMetadata(opts, 'nitro', ['nitro', 'node']);
1619

1720
const client = nodeInit(opts);

0 commit comments

Comments
 (0)