Fix Dockerfile to copy only package.json for dependency installation
This commit is contained in:
parent
18cb9cebd7
commit
e1e368668c
3 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue