Commit 27c1ee6d by Moorthy G

refactor(next.config): update next config file

parent dba49b13
module.exports = {
experimental: { appDir: true },
images: {
domains: [''],
deviceSizes: [128, 384],
imageSizes: [640, 828, 1200, 1600, 1920, 2048]
remotePatterns: [
{
protocol: 'https',
hostname: 's3-ap-southeast-1.amazonaws.com'
}
],
imageSizes: [64, 128, 256, 576, 768, 992, 1200, 1600, 1920, 2048, 3840]
},
webpack: (config, { isServer }) => {
if (process.env.ANALYZE && !isServer) {
......@@ -21,18 +24,11 @@ module.exports = {
async rewrites() {
return [
{
source: '/',
destination: '/home'
},
{
source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL}/:path*`
}
];
},
env: {
homeUrl: '/home'
},
poweredByHeader: false,
compress: false
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment