From d79668b03ba16046dfde93bba11a14c68a8b4b9d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 Sep 2024 13:29:37 +0200 Subject: [PATCH] production --- Dockerfile | 10 +++++----- next.config.js | 42 ++++++++++++++++++++++++++++++++---------- 2 files changed, 37 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 069870e..30bdfb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,18 +7,18 @@ WORKDIR /app # Install dependencies COPY package*.json ./ -RUN yarn install -#RUN npm install - +# RUN yarn install +RUN npm install # Copy project files COPY . . +# RUN npm run build RUN yarn build # Expose port -EXPOSE 3000 +# EXPOSE 3000 CMD ["yarn", "start"] # Start the application in development mode -#CMD ["npm", "run", "dev"] +# CMD ["npm", "run", "dev"] diff --git a/next.config.js b/next.config.js index 506c17c..03a332a 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,21 @@ /** @type {import('next').NextConfig} */ -const nextConfig = { - reactStrictMode: false, + + +module.exports = { + typescript: { + // !! WARN !! + // Dangerously allow production builds to successfully complete even if + // your project has type errors. + // !! WARN !! + ignoreBuildErrors: true, + }, + ignoreBuildErrors: true, + eslint: { + ignoreDuringBuilds: true, + }, + typescript: { + ignoreBuildErrors: true, + }, images: { remotePatterns: [ { @@ -35,15 +50,22 @@ const nextConfig = { }, ], }, - typescript: { - ignoreBuildErrors: true, - }, - eslint: { - ignoreDuringBuilds: true, - }, - trailingSlash: true, + }; -module.exports = nextConfig; + +// const nextConfig = { +// reactStrictMode: false, +// ignoreBuildErrors: true, +// typescript: { +// ignoreBuildErrors: true, +// }, +// eslint: { +// ignoreDuringBuilds: true, +// }, +// trailingSlash: true, +// }; + +// module.exports = nextConfig;