Commit 27c1ee6d by Moorthy G

refactor(next.config): update next config file

parent dba49b13
module.exports = { module.exports = {
experimental: { appDir: true },
images: { images: {
domains: [''], remotePatterns: [
deviceSizes: [128, 384], {
imageSizes: [640, 828, 1200, 1600, 1920, 2048] protocol: 'https',
hostname: 's3-ap-southeast-1.amazonaws.com'
}
],
imageSizes: [64, 128, 256, 576, 768, 992, 1200, 1600, 1920, 2048, 3840]
}, },
webpack: (config, { isServer }) => { webpack: (config, { isServer }) => {
if (process.env.ANALYZE && !isServer) { if (process.env.ANALYZE && !isServer) {
...@@ -21,18 +24,11 @@ module.exports = { ...@@ -21,18 +24,11 @@ module.exports = {
async rewrites() { async rewrites() {
return [ return [
{ {
source: '/',
destination: '/home'
},
{
source: '/api/:path*', source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL}/:path*` destination: `${process.env.NEXT_PUBLIC_API_URL}/:path*`
} }
]; ];
}, },
env: {
homeUrl: '/home'
},
poweredByHeader: false, poweredByHeader: false,
compress: 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