Skip to content

Commit

Permalink
chore: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Feb 27, 2024
1 parent 4c9a3f3 commit 1ef0094
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/heliaFetch.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { dnsJsonOverHttps } from '@helia/ipns/dns-resolvers'
import { createVerifiedFetch, type ContentTypeParser } from '@helia/verified-fetch'
import { fileTypeFromBuffer } from '@sgtpooki/file-type'
import { getConfig } from './config-db'
import { trace } from './logger'
import { getConfig } from './config-db.ts'
import { trace } from './logger.ts'
import type { Helia } from '@helia/interface'

export interface HeliaFetchOptions {
Expand Down Expand Up @@ -126,8 +126,8 @@ function changeCssFontPath (path: string): string {
export async function heliaFetch ({ path, helia, signal, headers, id, protocol }: HeliaFetchOptions): Promise<Response> {
const config = await getConfig()
const verifiedFetch = await createVerifiedFetch({
gateways: ['https://trustless-gateway.link', ...config.gateways],
routers: ['https://delegated-ipfs.dev', ...config.routers],
gateways: [...config.gateways, 'https://trustless-gateway.link'],
routers: [...config.routers, 'https://delegated-ipfs.dev'],
dnsResolvers: ['https://delegated-ipfs.dev/dns-query'].map(dnsJsonOverHttps)
}, {
contentTypeParser
Expand Down

0 comments on commit 1ef0094

Please sign in to comment.