feat : 6 astra improve it
CI / Verify and audit (push) Successful in 2m33s
CI / Build, scan and deploy immutable images (push) Failing after 1m29s

This commit is contained in:
2026-09-22 18:28:18 +07:00 Unverified
parent 88afa8e947
commit 87e6bcd96f
56 changed files with 1351 additions and 511 deletions
+5 -3
View File
@@ -1,3 +1,5 @@
import { errorResponse } from "@/lib/security/http";
import { limitRequest, trustedClientAddress } from "@/lib/security/rate-limit";
import { connection } from "next/server";
import {
@@ -6,7 +8,6 @@ import {
} from "@/lib/auth/server";
import {
createRedisEventResponse,
eventsUnavailableResponse,
} from "@/lib/events/redis-stream";
export async function GET(request: Request) {
@@ -20,8 +21,9 @@ export async function GET(request: Request) {
throw cause;
}
try {
await limitRequest("stream-open", trustedClientAddress(request.headers), 60);
return await createRedisEventResponse("admin", request.signal);
} catch {
return eventsUnavailableResponse();
} catch (cause) {
return errorResponse(cause);
}
}