We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f287d1 commit 7555b34Copy full SHA for 7555b34
apps/webapp/app/services/apiRateLimit.server.ts
@@ -1,11 +1,9 @@
1
-import { ActionFunction, ActionFunctionArgs, LoaderFunction } from "@remix-run/server-runtime";
2
import { Ratelimit } from "@upstash/ratelimit";
3
-import { NextFunction } from "express";
+import { Request as ExpressRequest, Response as ExpressResponse, NextFunction } from "express";
4
import Redis, { RedisOptions } from "ioredis";
+import { createHash } from "node:crypto";
5
import { env } from "~/env.server";
6
-import { Request as ExpressRequest, Response as ExpressResponse } from "express";
7
import { logger } from "./logger.server";
8
-import { createHash } from "node:crypto";
9
10
function createRedisRateLimitClient(
11
redisOptions: RedisOptions
0 commit comments