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 Barbinc1d24cf3973d
diff --git a/.gitignore b/.gitignore
index cdf80b5593..5d9b1bdb17 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ opencode.json
scripts/migrations/data
scripts/paperless-test.ts
+scripts/test-get-stripe-customer.ts
# local env files
.env
diff --git a/apps/erp/app/routes/_public+/login.tsx b/apps/erp/app/routes/_public+/login.tsx
index 41f99c508a..1f9da40738 100644
--- a/apps/erp/app/routes/_public+/login.tsx
+++ b/apps/erp/app/routes/_public+/login.tsx
@@ -46,6 +46,12 @@ 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" }];
};
@@ -63,12 +69,6 @@ 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";