fix: Add server-side proxy support via fetch-with-proxy (#2044)

* fix: Add server-side proxy support via fetch-with-proxy

closes #1893

For some fun discussion on why this is required, see this issue: https://github.com/nodejs/node/issues/8381

* lint
This commit is contained in:
Tom Moor
2021-05-12 22:37:32 -07:00
committed by GitHub
parent 3bd56fff9e
commit 447371f35a
6 changed files with 26 additions and 5 deletions

View File

@ -4,7 +4,7 @@ import * as Sentry from "@sentry/node";
import AWS from "aws-sdk";
import addHours from "date-fns/add_hours";
import format from "date-fns/format";
import fetch from "isomorphic-fetch";
import fetch from "fetch-with-proxy";
const AWS_SECRET_ACCESS_KEY = process.env.AWS_SECRET_ACCESS_KEY;
const AWS_ACCESS_KEY_ID = process.env.AWS_ACCESS_KEY_ID;