Add ability to customize localhost url
madebyfabian opened this issue · 0 comments
madebyfabian commented
I am running localhost from a custom host (https://myapp.local
).
The way the localhost detection is currently implemented, the tracker does not recognize if I am on localhost or not, and therefore sends the request.
plausible-tracker/src/lib/request.ts
Lines 40 to 43 in 294405c
Possible Implementation
I would suggest to add an option where a user can change their localhost url and therefore making isLocalhost
true. Happy to add a PR if you agree.