switch to undici fetch
This commit is contained in:
parent
cc40eb1fff
commit
0e389797f5
3 changed files with 24 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue