fix: unblock production Docker build (chat query + middleware types)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-09-21 13:31:16 +02:00
parent ec642b057a
commit 997ccf66d7
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ export async function POST(req: NextRequest) {
normQuery.includes('presupuesto')
) {
try {
const matchNumber = query.match(/(\d+[\d\.,]*)/);
const matchNumber = userMessage.match(/(\d+[\d\.,]*)/);
let amount = 1000;
if (matchNumber) {
amount = parseFloat(matchNumber[1].replace(/\./g, '').replace(',', '.'));

View File

@@ -32,7 +32,7 @@ export async function middleware(req: NextRequest) {
getAll() {
return req.cookies.getAll();
},
setAll(cookiesToSet) {
setAll(cookiesToSet: { name: string; value: string; options?: Record<string, unknown> }[]) {
cookiesToSet.forEach(({ name, value }) => req.cookies.set(name, value));
res = NextResponse.next({
request: { headers: req.headers },