Browse Source

production

main
root 2 months ago
parent
commit
d79668b03b
  1. 8
      Dockerfile
  2. 42
      next.config.js

8
Dockerfile

@ -7,17 +7,17 @@ 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

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