Remove console log for client IP in postAnalytics function
Some checks failed
Code quality checks / biome (push) Failing after 8s
Some checks failed
Code quality checks / biome (push) Failing after 8s
This commit is contained in:
parent
bf32c3fd35
commit
17bee43782
1 changed files with 0 additions and 7 deletions
|
@ -47,13 +47,6 @@ const postAnalytics = async (
|
|||
req: Request | Bun.BunRequest,
|
||||
server: Bun.Server,
|
||||
) => {
|
||||
console.log(String(
|
||||
req.headers.get("CF-Connecting-IP") ||
|
||||
req.headers.get("X-Real-IP") ||
|
||||
req.headers.get("X-Forwarded-For")?.split(",")[0] ||
|
||||
(typeof server.requestIP(req) === "string"
|
||||
? server.requestIP(req)
|
||||
: server.requestIP(req)?.address || "")));
|
||||
return await fetch("https://plausible.creations.works/api/event", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
|
|
Loading…
Add table
Reference in a new issue