fix: fix nextjs hot-reload

This commit is contained in:
Emnaghz 2024-09-27 10:38:08 +01:00
parent 27dc278e2c
commit 615402c88b
2 changed files with 6 additions and 9 deletions

View File

@ -48,8 +48,7 @@ services:
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
volumes:
- ../frontend/src:/app/src
- ../frontend/src/components:/app/src/components
- ../frontend/:/app/frontend/
ports:
- 8081:8081

View File

@ -78,13 +78,11 @@ FROM base AS development
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/package.json ./package.json
COPY --from=deps /app/package-lock.json ./package-lock.json
COPY ./widget ./widget
COPY ./frontend ./frontend
COPY --from=deps /app/widget/node_modules ./widget/node_modules
COPY --from=deps /app/frontend/node_modules ./frontend/node_modules
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
COPY . .
RUN npm install
ENV NODE_ENV=development
ENV CHOKIDAR_USEPOLLING=true