Skip to content

Commit

Permalink
fix(next-config): update props
Browse files Browse the repository at this point in the history
  • Loading branch information
rutajdash committed Oct 28, 2022
1 parent 6a58646 commit 96fa9ef
Showing 1 changed file with 30 additions and 19 deletions.
49 changes: 30 additions & 19 deletions client/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,35 @@ const getEnv = (phase) => {
return parsed;
};

const nextConfig = (phase, { defaultConfig }) => ({
...defaultConfig,
reactStrictMode: !isDev(phase),
env: getEnv(phase),
devIndicators: {
buildActivityPosition: 'bottom-left',
},
images: {
domains: ['ik.imagekit.io', 'mondaymorning.nitrkl.ac.in', 'mm.dashnet.in'],
},
eslint: {
/**
* Warning!
* This allows production builds to successfully complete even if your project has ESLint errors.
* Do not enable for production builds.
*/
ignoreDuringBuilds: true,
},
});
const nextConfig = (phase, { defaultConfig }) => {
/**
* @type {import('next').NextConfig}
*/
const _config = {
reactStrictMode: !isDev(phase),
env: getEnv(phase),
devIndicators: {
buildActivityPosition: 'bottom-left',
},
images: {
domains: [
'ik.imagekit.io',
'mondaymorning.nitrkl.ac.in',
'mm.dashnet.in',
],
},
eslint: {
/**
* Warning!
* This allows production builds to successfully complete even if your project has ESLint errors.
* Do not enable for production builds.
*/
ignoreDuringBuilds: true,
dirs: ['src'],
},
poweredByHeader: false,
};
return _config;
};

export default nextConfig;

0 comments on commit 96fa9ef

Please sign in to comment.