switch to undici fetch

This commit is contained in:
hazycora 2023-09-10 13:58:43 -05:00
parent cc40eb1fff
commit 0e389797f5
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
3 changed files with 24 additions and 44 deletions

View file

@ -3,7 +3,7 @@ import express from 'express'
import { Eta } from 'eta'
import render, { renderHtml } from './lib/render.js'
import languageColors from './lib/languagecolors.js'
import fetch from 'node-fetch'
import { fetch } from 'undici'
import hash from './lib/hash.js'
import { DMSans, ComicSans } from './lib/fonts.js'
// satori is using the native fetch api, causing a warning, so make node-fetch the default