mirror of
https://github.com/hexastack/hexabot
synced 2024-11-29 23:51:27 +00:00
fix: fix nextjs hot-reload
This commit is contained in:
parent
27dc278e2c
commit
615402c88b
@ -48,8 +48,7 @@ services:
|
|||||||
- CHOKIDAR_USEPOLLING=true
|
- CHOKIDAR_USEPOLLING=true
|
||||||
- WATCHPACK_POLLING=true
|
- WATCHPACK_POLLING=true
|
||||||
volumes:
|
volumes:
|
||||||
- ../frontend/src:/app/src
|
- ../frontend/:/app/frontend/
|
||||||
- ../frontend/src/components:/app/src/components
|
|
||||||
ports:
|
ports:
|
||||||
- 8081:8081
|
- 8081:8081
|
||||||
|
|
||||||
|
@ -78,13 +78,11 @@ FROM base AS development
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
||||||
COPY --from=deps /app/package.json ./package.json
|
|
||||||
COPY --from=deps /app/package-lock.json ./package-lock.json
|
COPY . .
|
||||||
COPY ./widget ./widget
|
|
||||||
COPY ./frontend ./frontend
|
RUN npm install
|
||||||
COPY --from=deps /app/widget/node_modules ./widget/node_modules
|
|
||||||
COPY --from=deps /app/frontend/node_modules ./frontend/node_modules
|
|
||||||
|
|
||||||
ENV NODE_ENV=development
|
ENV NODE_ENV=development
|
||||||
ENV CHOKIDAR_USEPOLLING=true
|
ENV CHOKIDAR_USEPOLLING=true
|
||||||
|
Loading…
Reference in New Issue
Block a user