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

Add urlPrefix option #48

Conversation

dguayrobotiq
Copy link

Fixes #47

Add urlPrefix option to replace publicUrl in the file name when uploading files to Sentry's release artifacts.

If the assets are stored on Cloudfront, files would normally be named something like https://xxxx.cloudfront.net/assets/... in Sentry's release artifacts. If you set urlPrefix to ~, files will instead be named ~/assets/....

@lukemelia
Copy link

@dguayrobotiq Congrats on getting this figured out! Is there any reason to have both publicUrl and urlPrefix? It seems like they are used for the same purpose.

@dguayrobotiq
Copy link
Author

dguayrobotiq commented Apr 9, 2018

Gosh I feel so dumb. I think you're right and my PR is useless. By reading the README, I really thought publicUrl was used to retrieve files... I can actually just set publicUrl to ~ instead of my cloudfront...

I'll test that and decline that PR...

@lukemelia
Copy link

@dguayrobotiq definitely not dumb -- other people could and will make the same mistake. Perhaps you could change the PR into a documentation PR that updates the README to clearly address information that would have helped "you" a week ago.

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

Successfully merging this pull request may close these issues.

Add an option to be able to upload files with relative path
2 participants