mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
32 lines
641 B
JavaScript
32 lines
641 B
JavaScript
// @ts-check
|
|
|
|
const isProduction = process.env.NODE_ENV === "production";
|
|
|
|
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
|
enabled: isProduction,
|
|
});
|
|
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
* */
|
|
const nextConfig = {
|
|
compiler: {
|
|
reactRemoveProperties: isProduction,
|
|
removeConsole: isProduction,
|
|
styledComponents: true,
|
|
},
|
|
devIndicators: {
|
|
buildActivity: false,
|
|
},
|
|
experimental: {
|
|
disablePostcssPresetEnv: true,
|
|
reactRoot: true,
|
|
swcFileReading: true,
|
|
},
|
|
optimizeFonts: false,
|
|
reactStrictMode: true,
|
|
swcMinify: !isProduction,
|
|
};
|
|
|
|
module.exports = withBundleAnalyzer(nextConfig);
|