Skip to content

Commit

Permalink
docs: Update proxying-requests.md (#274)
Browse files Browse the repository at this point in the history
Remove the Builder.io proxy API note, given unideal usage patterns
  • Loading branch information
steve8708 committed Oct 3, 2022
1 parent 2f9606a commit 36fb985
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions docs/proxying-requests.md
Expand Up @@ -55,21 +55,6 @@ Below are a few examples of [reverse proxies](https://en.wikipedia.org/wiki/Reve
- [NGINX](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/)
- [Vercel: Rewrites](https://vercel.com/docs/cli#project-configuration/rewrites)

[Builder.io](https://www.builder.io/) also provides a hosted [reverse proxy API](https://www.builder.io/c/docs/js-proxy-api) you can use for Partytown with a free account

```javascript
partytown = {
resolveUrl: function (url, location, type) {
if (type === 'script') {
const proxyUrl = new URL('https://cdn.builder.codes/api/v1/js-proxy');
proxyUrl.searchParams.append('url', url.href);
proxyUrl.searchParams.append('apiKey', YOUR_BUILDER_PUBLIC_API_KEY);
return proxyUrl;
}
return url;
},
};
```

## Serving Resources Locally

Expand Down

1 comment on commit 36fb985

@vercel
Copy link

@vercel vercel bot commented on 36fb985 Oct 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.