fix(nitro): Use nitro at 127.0.0.1 instead of 0.0.0.0 to prevent warning issue

This commit is contained in:
hiro 2023-12-06 16:04:06 +07:00
parent a3bc76892c
commit 52d61ddc9f

View File

@ -191,7 +191,7 @@ async function spawnNitroProcess(): Promise<void> {
const binaryPath = path.join(binaryFolder, binaryName); const binaryPath = path.join(binaryFolder, binaryName);
// Execute the binary // Execute the binary
subprocess = spawn(binaryPath, [1, "0.0.0.0", PORT], { subprocess = spawn(binaryPath, [1, "127.0.0.1", PORT], {
cwd: binaryFolder, cwd: binaryFolder,
}); });