From e6604fd90386641b901a978b82a8883f7531287a Mon Sep 17 00:00:00 2001 From: Harry Yep Date: Wed, 3 Jul 2024 22:47:21 +0800 Subject: [PATCH] fix: docker build (#334) --- Dockerfile | 4 ++-- components/layout/search/block/answer.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 98b4dded..925b32f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app COPY package.json pnpm-lock.yaml ./ -RUN npm i -g pnpm@8.15.7 +RUN npm i -g pnpm@latest RUN pnpm install COPY . . @@ -21,7 +21,7 @@ COPY --from=base /app/public ./public COPY --from=base /app/node_modules ./node_modules COPY --from=base /app/next.config.mjs ./next.config.mjs -RUN npm i -g pnpm@8.15.7 +RUN npm i -g pnpm@latest EXPOSE 3000 diff --git a/components/layout/search/block/answer.tsx b/components/layout/search/block/answer.tsx index 8b282353..94a61449 100644 --- a/components/layout/search/block/answer.tsx +++ b/components/layout/search/block/answer.tsx @@ -12,7 +12,7 @@ import store from '@/hooks/store'; export const Answer = ({ content, }: Readonly<{ - content: StreamableValue; + content: string | StreamableValue; }>) => { const t = useTranslations();