Skip to content

Commit

Permalink
Fixed a fetch() error
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Dec 30, 2024
1 parent e3b34b8 commit b5a1458
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down
4 changes: 4 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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"]);

Expand Down

0 comments on commit b5a1458

Please sign in to comment.