Browse Source

production

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

10
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"]

42
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;
Loading…
Cancel
Save