mirror of https://github.com/sunface/rust-course
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.
23 lines
509 B
23 lines
509 B
4 years ago
|
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,
|
||
|
)
|
||
|
|