Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit b6727a0

Browse files
committed
fix(nitro-node): fetch is not available by default on some environment
1 parent cdbd4a1 commit b6727a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

nitro-node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"dependencies": {
6262
"download": "^8.0.0",
6363
"fetch-retry": "^5.0.6",
64+
"isomorphic-fetch": "^3.0.0",
6465
"os-utils": "^0.0.14",
6566
"tcp-port-used": "^1.0.2"
6667
},

nitro-node/src/nitro.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import fs from "node:fs";
22
import path from "node:path";
33
import { ChildProcessWithoutNullStreams, spawn } from "node:child_process";
44
import tcpPortUsed from "tcp-port-used";
5+
import "isomorphic-fetch";
56
import fetchRT from "fetch-retry";
67
import { executableNitroFile } from "./execute";
78
import {

0 commit comments

Comments
 (0)