Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy for uploading sourcemaps? #491

Open
gcunsolo opened this issue Feb 23, 2024 · 3 comments
Open

Proxy for uploading sourcemaps? #491

gcunsolo opened this issue Feb 23, 2024 · 3 comments

Comments

@gcunsolo
Copy link

Hello Sentries,

Big fan, big up!

Context

I'm using the Webpack plugin to upload my sourcemaps to sentry.io

For my CD, I'm using a (very) restrained self-hosted instance of Jenkins.

For security matters, this instance cannot freely communicate with the whole WWW

Well, it actually could, but only via a proxy.

Cannot find anything proxy related in your doc.

Ideally, i'd like to

sentryWebpackPlugin({
	  proxy: 'https://my-awesome-proxy',
      url: 'https://sentry.io'
}),

Thanks for your feedback!

@lforst
Copy link
Member

lforst commented Feb 23, 2024

Thanks for writing in. I think your request makes sense. I unfortunately cannot give a timeline when we will get to implementing this - it is not high prio.

As a workaround, can you try setting the http_proxy environment variable when building? docs For some reason it needs to be lowercase apparently 🤔 Please don't ask me why.

@gcunsolo
Copy link
Author

Thanks for your reply @lforst

As far as I understand, applying your workaround would mean to drop the Webpack Plugin and do my things via the cli right after the build, right?

I'll give it a try, thanks again!

@lforst
Copy link
Member

lforst commented Feb 23, 2024

@gcunsolo No you shouldn't have to drop the webpack plugin. The webpack plugin uses the CLI under the hood, so the env var should be picked up by the CLI and use the proxy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants