Skip to content

Commit

Permalink
change dns resolution order to ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
liady committed Feb 5, 2024
1 parent 4323eed commit 8b6ea6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utopia-remix/app/util/proxy.server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import urljoin from "url-join";
import { ServerEnvironment } from "../env.server";
import { proxiedResponse } from "./api.server";
import dns from "dns";

// this is a workaround for default DNS resolution order with Node > 17 (where ipv6 is first)
// https://github.com/node-fetch/node-fetch/issues/1624#issuecomment-1235826631
dns.setDefaultResultOrder("ipv4first");

const BASE_URL = ServerEnvironment.BackendURL;

Expand Down

0 comments on commit 8b6ea6c

Please sign in to comment.