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

disable reverse proxy in browser environments #227

Open
pondorasti opened this issue Aug 17, 2024 · 1 comment
Open

disable reverse proxy in browser environments #227

pondorasti opened this issue Aug 17, 2024 · 1 comment

Comments

@pondorasti
Copy link

pondorasti commented Aug 17, 2024

I'm using next-axiom with Next.js, and I would like to disable all configuration that proxies logging requests through my own domain. The new Vercel pricing doesn't make it worth it as we end up having to pay for each proxied request.

CleanShot 2024-08-17 at 14 00 00@2x

I would like to have an option that makes the reverse proxy opt in.

getLogsEndpoint(): string {
return isBrowser ? `${this.proxyPath}/logs` : this.getIngestURL(EndpointType.logs);
}
getWebVitalsEndpoint(): string {
return isBrowser ? `${this.proxyPath}/web-vitals` : this.getIngestURL(EndpointType.webVitals);
}

@pondorasti pondorasti changed the title disable proxyPath in browser environments disable reverse proxy in browser environments Aug 17, 2024
@sangdth
Copy link

sangdth commented Aug 20, 2024

I'm not sure but look like I have similar issue in local dev. Despite setting the NEXT_PUBLIC_AXIOM_URL, the requests on client still send through proxy url.

Screenshot 2024-08-20 at 20 25 12

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

No branches or pull requests

2 participants