You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-course/next.config.js

23 lines
509 B

const withPlugins = require("next-compose-plugins")
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
})
const defaultConfig = {
target: "serverless",
webpack: (config) => ({
...config,
externals: [...config.externals],
}),
experimental: {
optimizeFonts: true,
modern: true,
},
redirects: require("./next-redirect"),
}
module.exports = withPlugins(
[withBundleAnalyzer],
defaultConfig,
)