-
Notifications
You must be signed in to change notification settings - Fork 125
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
feat: use new proxy 🥳 fix #1396 #1703
Conversation
🦋 Changeset detectedLatest commit: 3ec01d2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This comment was marked as resolved.
This comment was marked as resolved.
21baaa4
to
3d14216
Compare
#1643 Bundle Size — 1.91MiB (+0.05%).Warning Bundle contains 4 duplicate packages – View duplicate packages Bundle metrics
|
Current #1643 |
Baseline #1642 |
|
---|---|---|
Initial JS | 1.91MiB (+0.05% ) |
1.91MiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 100% |
0% |
Chunks | 1 |
1 |
Assets | 1 |
1 |
Modules | 1082 |
1082 |
Duplicate Modules | 0 |
0 |
Duplicate Code | 0% |
0% |
Packages | 157 |
157 |
Duplicate Packages | 4 |
4 |
Bundle analysis report Branch marc/migrate-to-new-proxy Project dashboard
3247b84
to
a2f70e6
Compare
a2f70e6
to
a7583a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, wdyt @marclave and others?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
packages/api-client/src/components/ApiClient/Response/ResponseBody.vue
Outdated
Show resolved
Hide resolved
Preview deployed to https://4caacb26-041d-41a2-884d-fdc787a10f02--scalar-deploy-preview.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and works great! The issue is with the deploy preview
The cors header has *, * as a value! I fixed this in the Go proxy, but proxy.scalar.com doesn’t have the fix yet. Because it’s in this PR here. 😂 |
…ated with a duplicate slash
336fa70
to
42b857a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HUGE! let's goooo
This PR migrates to the new proxy, which is now hosted on https://proxy.scalar.com
We used to have a custom proxy, which returned JSON always. The new proxy is a raw HTTP proxy (written in Go), which expects to get a
?scalar_url=
query parameter, everything else (headers and such) aren’t touched at all and just proxied through.If you’re using the old proxy (https://api.scalar.com/request-proxy) we magically replace it with the new URL (https://proxy.scalar.com) on the fly. You’ll receive a deprecation warning, though. Please update your configuration to use the new proxy URL.
If you used to self-host our
@scalar/api-client-proxy
we kindly ask you to switch to our new proxy (examples/proxy-server) written in Go. If you need help with that, reach out to us on Discord.Additional improvements
Additional fixes
Preview
(Comment hijacked by @hanspagel)