From d42a7da75b04b5edc8e3c1b9dc7cb6fc141ce06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Mon, 11 Aug 2025 12:49:10 +0200 Subject: [PATCH 1/3] fixed typescript error --- app/lib/actions/billActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/actions/billActions.ts b/app/lib/actions/billActions.ts index e4220af..f618d7b 100644 --- a/app/lib/actions/billActions.ts +++ b/app/lib/actions/billActions.ts @@ -402,7 +402,7 @@ export const deleteBillById = withUser(async (user:AuthenticatedUser, locationID filter: { _id: loc._id, userId }, update: { $pull: { - bills: { name: bill.name } + bills: { name: bill.name } as Partial } } } From 0a16afb1b6cc84006b566ff3da172e15d35cfc72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Mon, 11 Aug 2025 12:58:29 +0200 Subject: [PATCH 2/3] Dockerfile: fixed ENV var syntax --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4da1e50..da21d88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,11 +27,11 @@ RUN npm run build #----------------------------------------- # STAGE 3: Run the Next.js server #----------------------------------------- -FROM base as production +FROM base AS production WORKDIR /app -ENV NODE_ENV production +ENV NODE_ENV=production RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs @@ -54,7 +54,7 @@ USER nextjs EXPOSE 3000 -ENV PORT 3000 +ENV PORT=3000 # server.js is created by next build from the standalone output # https://nextjs.org/docs/pages/api-reference/next-config-js/output From 76e864b53fa9d486faca79ae6ceb5bcc452e0800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Mon, 11 Aug 2025 12:59:00 +0200 Subject: [PATCH 3/3] Dockerfile: upgraded Node version 18>24 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index da21d88..b33c234 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # This file is inspired by https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile -FROM node:18-alpine AS base +FROM node:24-alpine AS base #----------------------------------------- # STAGE 1: Build the Next.js project