prismicio / javascript-nodejs-starter

Starter project for NodeJS – Works with any prismic.io repository
34 stars 30 forks source link

Using starter from behind corporate proxy #15

Closed faceleg closed 9 years ago

faceleg commented 9 years ago

Is there a configuration option I can use to set the proxy?

erwan commented 9 years ago

Not really. Are you using the kit in-browser or in a Node.js app?

faceleg commented 9 years ago

Node js - what underlying request module is used? I've had this issue with a few high level modules, one I fixed by sniffing for and passing the HTTP_PROXY value to the underlying request module (they don't all check for and use this automagically)

erwan commented 9 years ago

we're using http/https:

https://github.com/prismicio/javascript-kit/blob/master/src/utils.js#L103

faceleg commented 9 years ago

Thanks, that's what I needed. Time permitting I'll fix this in a PR.

erwan commented 9 years ago

That'd be awesome!