How to combine plugins and other in next js next.cinfi.js

  javascript, next.js

const withPlugins = require(‘next-compose-plugins’);
const optimizedImages = require(‘next-optimized-images’);

const nextConfiguration = {
target: ‘serverless’,
};

module.exports = withPlugins([optimizedImages], nextConfiguration);

trailingSlash: true
historyApiFallback: true

Source: Ask Javascript Questions

LEAVE A COMMENT