Skip to content

_DownloadFont does not use customFetch #4886

@Indekkusu545

Description

@Indekkusu545

UnoCSS version

main

Describe the bug

As the code below, it uses fetch from ofetch but not customFetch:

const response = await fetch(url)

This prevents the font from downloading when using a proxy.

Reproduction

{
  customFetch: (url: string) => axios.get(url, { httpsAgent: new ProxyAgent() }).then(it => it.data),
}

System Info

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions