Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

build: force redeploy

Brad Barbine856a5efb16f
diff --git a/apps/erp/app/routes/_public+/login.tsx b/apps/erp/app/routes/_public+/login.tsx
index 1f9da40738..41f99c508a 100644
--- a/apps/erp/app/routes/_public+/login.tsx
+++ b/apps/erp/app/routes/_public+/login.tsx
@@ -46,12 +46,6 @@ import {
import type { Result } from "~/types";
import { path } from "~/utils/path";
-const ratelimit = new Ratelimit({
- redis,
- limiter: Ratelimit.slidingWindow(RATE_LIMIT, "1 h"),
- analytics: true
-});
-
export const meta: MetaFunction = () => {
return [{ title: "Carbon | Login" }];
};
@@ -69,6 +63,12 @@ export async function loader({ request }: LoaderFunctionArgs) {
};
}
+const ratelimit = new Ratelimit({
+ redis,
+ limiter: Ratelimit.slidingWindow(RATE_LIMIT, "1 h"),
+ analytics: true
+});
+
export async function action({ request }: ActionFunctionArgs) {
assertIsPost(request);
const ip = request.headers.get("x-forwarded-for") ?? "127.0.0.1";