Skip to content

disable reverse proxy in browser environments #227

Description

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);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions