diff --git a/CHANGES.md b/CHANGES.md index 70c4a6f..1a1e892 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,9 @@ Version 0.4.2 To be released. + - Fixed a bug where some `fetch()` requests had not been resolved correctly + and caused a `TypeError`. + Version 0.4.1 ------------- diff --git a/src/index.tsx b/src/index.tsx index 00cc3dc..84d136e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,4 +1,5 @@ import "./logging"; +import { setDefaultResultOrder } from "node:dns"; import { join, relative } from "node:path"; import { federation } from "@fedify/fedify/x/hono"; import { serve } from "@hono/node-server"; @@ -14,6 +15,9 @@ import pages from "./pages"; import { configureSentry } from "./sentry"; import { DRIVE_DISK, assetPath } from "./storage"; +// https://github.com/nodejs/undici/issues/1248#issuecomment-1236645837 +setDefaultResultOrder("ipv4first"); + // biome-ignore lint/complexity/useLiteralKeys: tsc complains about this (TS4111) configureSentry(process.env["SENTRY_DSN"]);