chatgpt-demo icon indicating copy to clipboard operation
chatgpt-demo copied to clipboard

Suggestion: Cancel support for httpproxy.

Open enhay opened this issue 2 years ago • 1 comments

Describe the bug

Due to the support for httpproxy which introduces undici and the import { fetch, ProxyAgent } from 'undici', Vercel compilation cannot pass. Although this problem can be solved using the custom plugin Vercel-disable-blocks, there are still compilation issues on other platforms such as Cloudflare. Disabling httpproxy support adds unnecessary complexity to the project. It is recommended that developers use tun models or other methods to solve network problems themselves.

Reproduction

deploy for cloudflare

System Info

run  pnpm astro add cloudflare  && pnpm run build 
got error 
error:   Could not resolve "async_hooks"
File: node_modules/.pnpm/[email protected]/node_modules/undici/lib/api/api-connect.js:4:34

Used Package Manager

pnpm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

enhay avatar Mar 08 '23 14:03 enhay

Thanks, I did have to do a lot of work as well as encounter as well as a lot of inconvenience because of this feature. I am willing to remove this support.

ddiu8081 avatar Mar 08 '23 15:03 ddiu8081

Removed in v2.

ddiu8081 avatar Apr 16 '23 17:04 ddiu8081