aboutsummaryrefslogtreecommitdiff
path: root/packages/webapi/run/build.js
diff options
context:
space:
mode:
authorGravatar Zicklag <zicklag@katharostech.com> 2022-09-22 13:47:06 -0500
committerGravatar GitHub <noreply@github.com> 2022-09-22 14:47:06 -0400
commit5e4c5252bd80cbaf6a7ee4d4503ece007664410f (patch)
treee209fdf5e4a0514d90ceb4289d56c5a835126df3 /packages/webapi/run/build.js
parent6ce8ae261f71ae301f70480b207fbb18eb71af75 (diff)
downloadastro-5e4c5252bd80cbaf6a7ee4d4503ece007664410f.tar.gz
astro-5e4c5252bd80cbaf6a7ee4d4503ece007664410f.tar.zst
astro-5e4c5252bd80cbaf6a7ee4d4503ece007664410f.zip
Http proxy for fetch (#4676)
* Add HTTP Proxy Support to `fetch` Polyfill Use `global-agent` to support HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables. * Add Changeset For HTTP Proxy Support in `fetch`
Diffstat (limited to 'packages/webapi/run/build.js')
-rw-r--r--packages/webapi/run/build.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/webapi/run/build.js b/packages/webapi/run/build.js
index d81f5e609..42571763a 100644
--- a/packages/webapi/run/build.js
+++ b/packages/webapi/run/build.js
@@ -178,7 +178,7 @@ async function build() {
inputOptions: {
input: 'src/polyfill.ts',
plugins: plugins,
- external: ['node-fetch'],
+ external: ['node-fetch', 'global-agent'],
onwarn(warning, warn) {
if (warning.code !== 'UNRESOLVED_IMPORT') warn(warning)
},