Skip to content

Commit

Permalink
Update proxy to support analytics 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
apriendeau committed Oct 19, 2021
1 parent 2acf478 commit b13b796
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ func singleJoiningSlash(a, b string) string {
func NewSegmentReverseProxy(cdn *url.URL, trackingAPI *url.URL) http.Handler {
director := func(req *http.Request) {
// Figure out which server to redirect to based on the incoming request.
// https://segment-cdn.dayforward.com/analytics-next/bundles/130.bundle.9457873b007a93e16765.js
// https://segment-cdn.dayforward.com/analytics-next/bundles/ajs-destination.bundle.c473a3426ccbc3cdfba0.js
// https://prod-segment-cdn.dayforward.com/next-integrations/integrations/facebook-pixel/2.11.4/facebook-pixel.dynamic.js.gz
var target *url.URL
switch {
case strings.HasPrefix(req.URL.String(), "/v1/projects"):
Expand Down

0 comments on commit b13b796

Please sign in to comment.