Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/** @type {import('next').NextConfig} */

import withBundleAnalyzer from '@next/bundle-analyzer';
const isAnalyze = process.env.ANALYZE === 'true';
const nextConfig = {
// SWC 기반 압축 활성화
swcMinify: true,

images: {
remotePatterns: [
{
Expand All @@ -24,4 +30,7 @@ const nextConfig = {
},
};

export default nextConfig;

export default withBundleAnalyzer({
enabled: isAnalyze,
})(nextConfig);
Loading