fix: ensure public dir exists in build, fix serverExternalPackages for Next.js 14
CI/CD / build-and-push (push) Failing after 3s
Details
CI/CD / build-and-push (push) Failing after 3s
Details
This commit is contained in:
parent
4465be2032
commit
7ddba78d6a
|
|
@ -3,6 +3,7 @@ WORKDIR /app
|
|||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN mkdir -p public
|
||||
RUN npm run build
|
||||
|
||||
FROM node:20-alpine AS runner
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
/** @type {import("next").NextConfig} */
|
||||
const nextConfig = {
|
||||
output: "standalone",
|
||||
serverExternalPackages: ["@kubernetes/client-node"],
|
||||
experimental: {
|
||||
serverComponentsExternalPackages: ["@kubernetes/client-node"],
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
|
|
|
|||
Loading…
Reference in New Issue