Skip to content

Commit aa946b9

Browse files
authored
v1.2.6l - feat: Add comprehensive MFA utilities including TOTP, SMS, …
v1.2.6l - feat: Add comprehensive MFA utilities including TOTP, SMS, …
2 parents 9c0deda + 5ba75e0 commit aa946b9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/api/upload/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { systemLogger } from "@/lib/logger";
1111
// Generic Azure Blob upload endpoint used by Invoice FileInput and other generic uploads.
1212
// Accepts multipart/form-data with field "file".
1313

14-
// Increase Next.js body size limit from default 1MB to 2MB
14+
// Body size limit is set in next.config.js
1515
export const maxDuration = 30; // Allow up to 30s for large uploads
1616
export const dynamic = "force-dynamic";
1717

lib/mfa-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const sendMfaSms = async (phone: string, code: string) => {
6767
// ─── WebAuthn (Fingerprint / Biometrics) ─────────────────────────────────────
6868

6969
const rpName = process.env.NEXT_PUBLIC_APP_NAME || "Basalt CRM";
70-
const origin = process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000";
70+
const origin = (process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000").replace(/\/+$/, "");
7171
// Auto-derive rpID from the origin hostname (e.g. "crm.basalthq.com" or "localhost")
7272
const rpID = process.env.NEXT_PUBLIC_AUTH_DOMAIN || (() => {
7373
try { return new URL(origin).hostname; } catch { return "localhost"; }

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const nextConfig = {
44
serverActions: {
55
bodySizeLimit: '4mb',
66
},
7+
routeHandlerBodySizeLimit: '4mb',
78
},
89
// TypeScript errors will now fail the build (safety net removed)
910
// typescript: { ignoreBuildErrors: true },

0 commit comments

Comments
 (0)