Skip to content

Commit

Permalink
Fix networking issue for using usher locally (#30598)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 6b8a13a5fb9ac357eee394fd1108b5e1b04d7d97
  • Loading branch information
emmaling27 authored and Convex, Inc. committed Oct 10, 2024
1 parent d92360c commit 7909fac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions npm-packages/convex/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import inquirer from "inquirer";
import inquirerSearchList from "inquirer-search-list";
import { format } from "util";
import { functionSpec } from "./functionSpec.js";
import dns from "node:dns";

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

// Use ipv4 first for 127.0.0.1 in tests
dns.setDefaultResultOrder("ipv4first");

if (!process.env.CI && provisionHost === productionProvisionHost) {
Sentry.init({
dsn: "https://[email protected]/6390839",
Expand Down

0 comments on commit 7909fac

Please sign in to comment.