Browse Source

production

main
root 3 days ago
parent
commit
d79668b03b
  1. 10
      Dockerfile
  2. 42
      next.config.js

10
Dockerfile

@ -7,18 +7,18 @@ WORKDIR /app
# Install dependencies # Install dependencies
COPY package*.json ./ COPY package*.json ./
RUN yarn install
#RUN npm install
# RUN yarn install
RUN npm install
# Copy project files # Copy project files
COPY . . COPY . .
# RUN npm run build
RUN yarn build RUN yarn build
# Expose port # Expose port
EXPOSE 3000
# EXPOSE 3000
CMD ["yarn", "start"] CMD ["yarn", "start"]
# Start the application in development mode # Start the application in development mode
#CMD ["npm", "run", "dev"]
# CMD ["npm", "run", "dev"]

42
next.config.js

@ -1,6 +1,21 @@
/** @type {import('next').NextConfig} */ /** @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: { images: {
remotePatterns: [ 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;
Loading…
Cancel
Save