Skip to content

Commit

Permalink
changed next config
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshul1563 committed Apr 3, 2024
1 parent 1992123 commit 49f5ba2
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ const isProduction = (process.env.NODE_ENV || 'production') === 'production';
const assetPrefix = isProduction ? '' : '';

module.exports = {
trailingSlash: true,
// assetPrefix: assetPrefix,
webpack: (config) => {
config.plugins.push(
new webpack.DefinePlugin({
'process.env.ASSET_PREFIX': JSON.stringify(assetPrefix),
})
);
return config;
},
swcMinify: true,
images: { domains: ['pil-web.web.app'] },
trailingSlash: true,
// assetPrefix: assetPrefix,
webpack: (config) => {
config.plugins.push(
new webpack.DefinePlugin({
'process.env.ASSET_PREFIX': JSON.stringify(assetPrefix),
})
);
return config;
},
swcMinify: true,
images: {
domains: ['pil-web.web.app', 'theinnovationlab.in'],
loader: 'akamai',
path: ''
},
};

0 comments on commit 49f5ba2

Please sign in to comment.