Skip to content

proxyBaseURL is not set correctly, always goes to /api/event + cant be overwritten #37

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

Closed
MickL opened this issue Nov 24, 2024 · 3 comments

Comments

@MickL
Copy link

MickL commented Nov 24, 2024

  • The docs state that when setting proxy: true the requests go to: /api/__plausible_event__ but they go to /api/event
  • Further, when setting proxyBaseURL manually it has no effect, they still go to /api/event

Reproduction repo: https://github.com/MickL/plausible-proxy-bug
(You can see it in the network tab)

@MickL
Copy link
Author

MickL commented Nov 24, 2024

Maybe when fixing this we can also change the default path, e.g. to /_plausible_event :) #38

@MickL
Copy link
Author

MickL commented Nov 25, 2024

I even get an error:

POST https://www.../api/event 404 (Not Found)

@johannschopplich
Copy link
Collaborator

Thanks for the report!

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