[英]How to combine plugins and other in next js next.config.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
Just like this:像这样:
const withPlugins = require('next-compose-plugins'); const optimizedImages = require('next-optimized-images'); const nextConfiguration = { target: 'serverless', trailingSlash: true historyApiFallback: true }; module.exports = withPlugins([optimizedImages], nextConfiguration);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.