diff --git a/apps/infoalloggi/Dockerfile b/apps/infoalloggi/Dockerfile index 41532e8..9cf4e2c 100644 --- a/apps/infoalloggi/Dockerfile +++ b/apps/infoalloggi/Dockerfile @@ -5,7 +5,7 @@ FROM node:22-alpine AS base FROM base AS deps RUN apk add --no-cache libc6-compat openssl WORKDIR /app -COPY package*.json ./ +COPY package.json ./ ENV NODE_ENV=production RUN echo "base variables: $NODE_ENV is set to $NODE_ENV" diff --git a/apps/infoalloggi/src/components/custom_ui/form.tsx b/apps/infoalloggi/src/components/custom_ui/form.tsx index 41a9aca..7ad214d 100644 --- a/apps/infoalloggi/src/components/custom_ui/form.tsx +++ b/apps/infoalloggi/src/components/custom_ui/form.tsx @@ -180,7 +180,7 @@ const FormDebug = React.forwardRef< return null; } const { control, formState } = useFormContext(); - const devtools = await import("@hookform/devtools"); + const devtools = await import(/* webpackIgnore: true */ "@hookform/devtools"); if (Object.keys(formState.errors).length > 0) { console.error("errors", formState.errors); diff --git a/apps/infoalloggi/src/pages/api/panel.ts b/apps/infoalloggi/src/pages/api/panel.ts index ea547c7..5056bfd 100644 --- a/apps/infoalloggi/src/pages/api/panel.ts +++ b/apps/infoalloggi/src/pages/api/panel.ts @@ -7,7 +7,7 @@ export default async function handler(_: NextApiRequest, res: NextApiResponse) { return res.status(404).send("Not Found"); } - const { renderTrpcPanel } = await import("trpc-ui"); + const { renderTrpcPanel } = await import(/* webpackIgnore: true */ "trpc-ui"); res.status(200).send( renderTrpcPanel(appRouter, { url: "/api/trpc",