From c81114f44cabe3bb22e6d382ef7af53710d31151 Mon Sep 17 00:00:00 2001 From: Hendrik Date: Fri, 1 May 2026 21:44:44 +0200 Subject: [PATCH] =?UTF-8?q?v0.1.22=20=E2=80=94=20fix=20Internal=20Server?= =?UTF-8?q?=20Error=20on=20redirect:=20static=20hashIp=20import=20+=20resi?= =?UTF-8?q?lient=20blocklist=20(no-op=20on=20schema=20miss)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6fa15bb..e4a028d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "corex-nexredirect", - "version": "0.1.21", + "version": "0.1.22", "license": "MIT", "overrides": { "postcss": "^8.5.13", diff --git a/server.ts b/server.ts index 004003c..3e6ccb0 100644 --- a/server.ts +++ b/server.ts @@ -12,6 +12,7 @@ import { recordHit, shouldRecord } from "./lib/hits"; import { renderSunsetPage } from "./lib/sunset-html"; import { isBlocked } from "./lib/blocklist"; import { startJobs } from "./lib/jobs"; +import { hashIp } from "./lib/db"; const dev = process.env.NODE_ENV !== "production"; const port = parseInt(process.env.PORT || "3000", 10); @@ -36,7 +37,6 @@ app.prepare().then(() => { "unknown"; const ua = (req.headers["user-agent"] as string) || null; // Hash IP early so we can use it for the scan-detector check - const { hashIp } = await import("./lib/db"); const ipHash = hashIp(ip); // Persistent blocklist: drop without recording or redirecting if (isBlocked(ipHash)) {