Skip to content

Commit 30ef911

Browse files
emmaling27Convex, Inc.
authored andcommitted
Fix networking issue for using usher locally (#30598)
GitOrigin-RevId: 6b8a13a5fb9ac357eee394fd1108b5e1b04d7d97
1 parent 256201c commit 30ef911

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cli/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import inquirer from "inquirer";
2929
import inquirerSearchList from "inquirer-search-list";
3030
import { format } from "util";
3131
import { functionSpec } from "./functionSpec.js";
32+
import dns from "node:dns";
3233

3334
const MINIMUM_MAJOR_VERSION = 16;
3435
const MINIMUM_MINOR_VERSION = 15;
@@ -43,6 +44,9 @@ async function main() {
4344
// import * as SentryTracing from "@sentry/tracing"
4445
// Unused named imports are not guaranteed to patch the global hub.
4546

47+
// Use ipv4 first for 127.0.0.1 in tests
48+
dns.setDefaultResultOrder("ipv4first");
49+
4650
if (!process.env.CI && provisionHost === productionProvisionHost) {
4751
Sentry.init({
4852
dsn: "https://[email protected]/6390839",

0 commit comments

Comments
 (0)