Merge pull request #601 from Hexastack/fix/patch-lock-file-issue

fix: patch-lock-file error in dev & prod mode
This commit is contained in:
Med Marrouchi 2025-01-22 16:11:08 +01:00 committed by GitHub
commit 49e812ba12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,6 +52,9 @@ COPY ./widget ./widget
RUN npm install
# used to by pass Next.js paching lock file
ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true
ENV NODE_ENV=development
ENV CHOKIDAR_USEPOLLING=true
ENV WATCHPACK_POLLING=true
@ -64,6 +67,8 @@ CMD ["npm", "run", "dev", "--", "-p", "8080"]
FROM base AS production
WORKDIR /app
# used to by pass Next.js paching lock file
ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true
ENV NODE_ENV=production
# Uncomment the following line in case you want to disable telemetry during runtime.
ENV NEXT_TELEMETRY_DISABLED 1